Search Results

Search: Posts Made By: Yoda
4,795
Posted By Yoda
Can you re-try using the absolute path of jps in...
Can you re-try using the absolute path of jps in your if statement?
4,795
Posted By Yoda
If you want to check that the process:...
If you want to check that the process: cq5-author-4502.jar is running and do some action, then you can try:-

if [ `jps -l | grep cp| wc -l` -eq 0 ]
then
echo "Process is not running"
...
4,795
Posted By Yoda
Is this what you are trying to do? ...
Is this what you are trying to do?

CMDPATH1="/usr/jdk/jdk1.5.0_24/bin"
CMDPATH2="/usr/jdk/instances/jdk1.5.0/bin"

if [ -d $CMDPATH1 ]
then
# $CMDPATH1/cmd - Execute your command
elif...
Showing results 1 to 3 of 3

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