Thursday, March 31, 2022

List all processes in LINUX;

 $ ps -a

$ ps -a <PID>  //Shows of the process

$ ps -a <PID 1> <PID 2> // List of 2 processes


https://superuser.com/questions/632979/if-i-know-the-pid-number-of-a-process-how-can-i-get-its-name

inotify script to add entry to log file when file is created; File Monitoring; LINUX

Shell Script: inotify_test.sh

File permissions and formatting:

  • $ chmod 777 inotify_test.sh
  • sed -i -e 's/\r$//' inotify_test.sh
  • $ nohup ./inotify_test.sh 


 inotifywait -e close_write,moved_to,create,delete -m /home/app/One |

while read  directory  events filename; do

   echo "Processing $filename file...">>inotify.txt

   echo $(date +%x_%r) >>inotify_date.txt

done

Wednesday, March 23, 2022

Install inotify on RHEL 7; Monitor Folder UNIX

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && yum update


yum install inotify-tools


 https://drive.google.com/drive/folders/1WAXJXEjMo_AwBZ4pgCjg0_sJFF7RDQU6?usp=sharing

Wednesday, March 16, 2022

DataRow Transaction Item RE-Framework;UiPath RPA; Code Sample


Transaction Item - DataRow updated to below project. 


This project throws Business Exception for all values under WIID column and prints 1 to Results column for all other values.


Business Exception is explicitly throwed for values in Column WIID except value 32. 


 https://drive.google.com/file/d/1RZ-V_IpzlxPxG8WRz1huq8gxBnDXc1gT/view?usp=sharing