Timeout with call to unix shell
Sarah
sarahr at genesearch.com.au
Mon Jan 6 23:59:44 EST 2003
I don't know the answer to your timeout problem but I can think of a
workaround. AppleScript's do shell script allows you to put the
requisite password in the script. How about asking for the password in
your Revolution script and then adding it to the AppleScript command
yourself rather than needing any further user interaction.
Note: do shell script also has a parameter to set whether the action
needs administrator access. Maybe that is part of the problem. Get the
script working from the AppleScript editor first, then transfer it to
Revolution.
Cheers,
Sarah
On Tuesday, January 7, 2003, at 01:36 pm, RGould8 at aol.com wrote:
> 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?
More information about the use-livecode
mailing list