Guest_imported
New member
- Jan 1, 1970
- 0
This script runs fine manually, but when it is run via cron the ps -ef does not capture any result. Please help.
#!/bin/ksh
echo `jobs`
((RunJava=`ps -ef | grep -c java`))
echo "Number of Java = ${RunJava}"
((RunHttp=`ps -ef | grep -c http`))
echo "Number of Http = ${RunHttp}"
#!/bin/ksh
echo `jobs`
((RunJava=`ps -ef | grep -c java`))
echo "Number of Java = ${RunJava}"
((RunHttp=`ps -ef | grep -c http`))
echo "Number of Http = ${RunHttp}"