On 02/11/2010 03:35 AM, Wong 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
Thanks Tejas,
I will try the update
Thx & Rgds,
Wong
Wong, Also make the following change to include a test condition for while list control to make sure the script dies when you kill it. Replace this line: while :; do with while [[ -f $runfile ]]; do In bash, the 'while :; do' just tells the while loop to run forever and since there isn't a condition in the while look that breaks the loop, it will continue to run the test even after the dslcheck script is killed. -- 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