Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Better way to do the crucial line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Better way to do the crucial line
Authored by: iv on Jan 19, '02 02:59:48AM

Yes, and remember that AWK is just a glorified version of grep, so we can save a process by using pattern matching in AWK:

sudo renice -19 -p `ps -ax | awk '/Quake3/ {print $1}' `

These unix-oneliners give Applescript just the power it used to lack in Mac OS 9; thanks for brett_ et al. for showing me the way to go!

BTW, for more on 'using grep twice is a crime' see, e.g., http://www.ling.helsinki.fi/~reriksso/unix/award.html

iv



[ Reply to This | # ]