![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using mutiple "nohup" to execute multiple commands. | aster007 | Shell Programming and Scripting | 2 | 03-06-2009 12:35 PM |
| nohup command in the script.... | jayaramanit | Shell Programming and Scripting | 3 | 09-24-2008 07:48 PM |
| nohup command in a script....... | jayaramanit | Shell Programming and Scripting | 2 | 09-17-2008 07:44 AM |
| how to execute a batch script from shell script | lakshmis10 | Shell Programming and Scripting | 1 | 10-17-2007 01:43 PM |
| script execute or no execute | Kespinoza97 | Shell Programming and Scripting | 4 | 06-23-2007 10:27 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Execute Script using nohup and &
Hi all, I have one script test.sh for which I pass two arguments. In the same script I need to submit this script in background using nohup. My script like this and it is working in HP-UX os but not Solaris. Code:
#! /bin/sh
if [ $MTR_PID"0" = "0" ]
then
MTR_PID=$$
export MTR_PID
echo "test.sh $1 $2 $MTR_PID"|xargs nohup |&
fi
if [ $3"0" != "0" -a "$3" = "$MTR_PID" ]
then
while [ 1 ]
do
./Monitor.sh $1
sleep $2
done
fi
exit
Can anyone tell me why this is not getting executed in Solaris? Thanks, Sridhar |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|