Search Results

Search: Posts Made By: nevermind
19,944
Posted By nevermind
Foolproof solution to determine if your script was invoked by cron :)
Nevermind... :rolleyes:
I found out the solution

#!/usr/bin/perl
#Find my parent pid
#CR=`ps -ef | grep -i cron`
$parentpid=`ps -ef | grep "(/remote/idshome/pooja/parentpid.pl...
19,944
Posted By nevermind
same prob but difference is not interactive its rc script
Hi,

Am new and got registered only for this one thread...... :confused:
Well got the same prob. but i need to differentiate if my script was invoked by rc script or by cron.....i used this...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 06:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy