Background shell script...
Background shell script...
- Subject: Background shell script...
- From: David Crowe <email@hidden>
- Date: Mon, 11 Nov 2002 10:46:48 -0700
Axel;
Thanks for your response.
"yes" is a Unix application that generates a continuous stream of
yes's (and who says Unix doesn't have everything). But your "echo
yes" suggestion is much smarter.
I have narrowed down the problem a bit. 'vpnclient' appears to try to
modify the tty setting, so when run from a shell script it may fail
trying to do this. But, this still doesn't explain why it hangs so
badly that I have to force-quit script editor.
It is probably trying to access the terminal because it needs to turn
off echo if the password is input from the terminal (but if the
password is sent via the command line, there is no reason to do this).
I even found an easier way to replicate the problem. If you have the
Terminal application running, execute:
do shell script "echo yes >/dev/ttyp1"
and the word "yes" appears in the Terminal window.
If you quit the terminal application, and issue the same script from
the script editor, it hangs (not so badly, CMD-. worked, although the
Stop button didn't). It will give you an error if you start Terminal
and establish /dev/ttyp1.
- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.