Search Results

Search: Posts Made By: 73rdUserID
3,559
Posted By 73rdUserID
Both of these set count to 1 and not to 2,...
Both of these set count to 1 and not to 2, regardless that they run in a subshell:

count=$(pgrep -z global $PROGNAME | wc -l)
count=$(ps -z global | grep $PROGNAME | grep -v grep | wc -l)

It...
3,559
Posted By 73rdUserID
help with counting processes, bizzare behavior
I have a ksh script (dtksh Version M-12/28/93d on Solaris 10) that is run daily by cron and sometime hangs forever. I need to detect if there is an old copy hung before I start the new run, and if so...
Showing results 1 to 2 of 2

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