View Single Post
Old 12-12-2005, 12:43 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
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.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote