Timeout with call to unix shell

RGould8 at aol.com RGould8 at aol.com
Mon Jan 6 22:35:01 EST 2003


I'm trying to run a unix file that I installed at the home level of the 
hard-drive.   The file is called "PPPSetup", and I've got this script that 
runs it in Revolution:

   do "do shell script " & quote & "cd ~" & quote as Applescript
   do "do shell script " & quote & "PPPSetup e -e" & quote as Applescript

the problem I'm having is that I'm getting a "Timed out waiting for response 
from server" error.   What happens is that the PPPSetup command prompts the 
user for the admin authentification for the Mac OS X system.   This command 
works perfectly from the command-line (Terminal), but when run from 
Revolution (or Applescript for that matter), I get the timed-out error.   

I'm trying to think of alternative ways to execute this command.   (My 
preferred way would be to buy Revolution 2.0 and make the unix call 
directly), but since I can't do that just yet, I need to figure a 
work-around.   I'm not sure how to write a "batch" file in Unix, otherwise 
I'd try that - - - although I may have the same problem.   My problem is that 
I don't understand why I'm getting this timeout error (it only takes 10 
seconds).   I'm also finding that the unix call doesn't actually "follow 
through" with it's intended function due to this timeout error as well.   Is 
it possible that Applescript isn't "releasing" control to the shell properly 
in this case?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030106/5c8bccbe/attachment.html>


More information about the use-livecode mailing list