How to automate the process of executing a command upon creation of a file.
I have an application wherein a tool generates an xsd schema from a xml file. My next module uses this xsd schema for further processing.
I want to automate this process i.e. to run a command once the file is generated. This application will run everyday on ubuntu machine so I want to automate it.
My goal was to found the process with highes PID(yes I know can just do ps -ef|tail -n 1, but I want to find the PID first and then find the process), so I used the following command the find the process with the higest PID:
ps -ef|cut -d " " -f 6|sort|tail -n 1
and then I find ps -p that gets the highest PID and output the matching process(which works when I copy the PID manually) but for some
When executing ps command in my Linux system i see some user processes twice (different PID...). I wonder if they are new processes or threads of the same process. I know some functions in standard C library that could create a new process such fork().
I know about strace and ltrace, but that only tells me what system calls and library calls a process is executing, respectively. I would like to know exactly what instructions a process is executing. Either assembly, or some sort of middle ground between C and assembly if that is possible.