On 02/11/2010 03:16 AM, Tejas Guruswamy wrote:
On 11/02/10 04:03, Wong wrote:
Thanks for your advise & useful script.
I tried to run it foreground and get this message:
/usr/local/sbin/dslcheck: line 9: trap: cleanup: invalid signal specification That's because it should be INT TERM EXIT , not SIGINT SIGTERM EXIT. Also only one "trap cleanup" -- it seems to be duplicated for some reason.
Basically it should look like this trap cleanup INT TERM EXIT
Regards, Tejas
Tejas, You and Dave are correct. I must have been tired :-) Dave, picky, picky :p. 'echo "$$" > $runfile' is better, because you do actually store something useful in $runfile, but since I was just testing for existence, touch would work just fine ;-). I agree it should be 'rm -f' we don't want any confirmation questions. Good to with you Dave. One of these days, if just once, I'll actually 'snatch the pebbles from your hand' :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org