The thing is, that some scripting environment provides their own enterpritation of the key "nice" so if you have your script ie:
Code:
#!/bin/sh
nice my_command
nice -n 12 my_other_command
you can't be sure the two commands will be run with the available
nice program provided by the system because the scripting-shell in question might enterpret the word
nice differently than just running the nice command.
But if you have something like:
Code:
!#/bin/sh
my_command
my_other_command
and run it with:
~ > nice my_script.sh
It will be sure to run my_command and my_other_command with the nice value the
nice execution of the script is told.