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

There's no real difference. The first approach will work even if you have a different shell selected at the top of the script or have not set execute permissions on test.sh.

The second approach will use whatever shell is in the #! path and will only run if the execute bit is set.

Which approach to use depends on your environment and needs.

Thanks Smiling Dragon