Search Results

Search: Posts Made By: cavallino4u
9,970
Posted By cavallino4u
Hi Everyone, I found a method to avoid the 'sh...
Hi Everyone,
I found a method to avoid the 'sh -c' getting displayed in ps result when run in CRON.

The below line works:
ps -d -f | grep ${SCRIPT_NAME} | grep ksh | grep -v grep >>...
9,970
Posted By cavallino4u
Thanks methyl. My uname result is: SunOS...
Thanks methyl.

My uname result is:
SunOS xxxxxx Generic_118558-02 sun4u sparc SUNW,Sun-Fire-V240.

Can you please detail on the semaphore method that you talked about ?
I could use that...
9,970
Posted By cavallino4u
I am using the Sun solaris OS. So if flag...
I am using the Sun solaris OS.

So if flag file the only option I can look forward to ?
Please suggest if there is any other option along with ps that will prevent 'sh -c' from being fetched..
9,970
Posted By cavallino4u
Avoiding 'sh -c' when running ps from CRON
Hi,
I have a script which has the below line:
ps -ef | grep ${SCRIPT_NAME} | grep ksh | grep -v grep >> /tmp/instance.tmp

When the script is invoked through CRON, I get 2 lines in instance.tmp...
Showing results 1 to 4 of 4

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