09-27-2017 07:47 PM
A particular job is runing everyday morning at 04:00AM , and th elog is getting created under Batchserver Logs.
From management console , Schedule Manager i have deleted the flow of this particular run. Also i have deleted the backend deployed jobs as well.
But still i am wandering the log is getting created everyday and exactly i need to know from where this job is getting triggered.
Please, anyon ehelp me on this please.
Thanks & Regards,
09-27-2017 09:05 PM
If this is an LSF-scheduled job then you can go into the Platform Process Manager Flow Editor tool and right click on the flow and select Remove.
09-29-2017 12:54 AM
If the jobs are being started with the ../BatchServer/sasbatch.sh script, then you can always echo some values to a file to give you an indication who/what is calling the script i.e. put some echos in sasbatch_usermods.sh
Have you checked your cron schedules ? Assuming UNIX....
10-03-2017 11:56 AM - edited 10-03-2017 11:57 AM
One way off the top of my head would be to use inotify to detect for the creation of the log file, use fuser get the pid of the process that has a handle on it, and then something like ps to get more info on the process and store it for later.
So, something like this:
inotifywait -m /my/config/lev/App/BatchServer/Logs -e create -e moved_to | while read path action file; do if [[ "$file" =~ myjob*.log$ ]]; then # Within quotes specify filename matching criteria fuser $file | xargs ps -fp > ~/myanswer.txt # get pid, get info, get answer fi done
I've not tested it but it should do the trick.