The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-10-2007
mmasals mmasals is offline
Registered User
 

Join Date: Sep 2005
Posts: 3
Best practice to run bash script in background

nohup /bin/bassh $HOME/scripts/test.sh > $HOME/log/test.log 2>&1 &

nohup $HOME/scripts/test.sh > $HOME/log/test.log 2>&1 &


Which is the good practice to run a script in background of above two ?
does the first one will have any overhead on the system ?
our system is SunOS 5.10 Generic_118833-22 sun4v sparc SUNW,Sun-Fire-T200System.




test.sh is

#!/bin/bash
some functions
actual process
....
....
end of process....
exit 0



Thanks.

Ram
Reply With Quote
Remove advertisements
!!
Forum Sponsor