Re: Ignoring responses from "do shell script"
Re: Ignoring responses from "do shell script"
- Subject: Re: Ignoring responses from "do shell script"
- From: Martin Orpen <email@hidden>
- Date: Wed, 10 Mar 2004 23:34:52 +0000
on 10/3/04 11:03 pm, Emmanuel at email@hidden wrote:
>
At 10:25 PM +0000 10/03/04, Martin Orpen wrote:
>
>
> set ipBlock to {}
>
> repeat with i from x to y
>
> set theIP to IPbase & "." & i
>
> set ipBlock to ipBlock & theIP
>
> end repeat
>
>
>
> This works fine when x and y generate up to 82 items. Go over that number
>
> and script fails.
>
>
I'm not sure if you mean, the AppleScript fails or the ping. Anyway I think
>
others have made clear that it's always better to write "set end of ipBlock to
>
theIP" than "set ... to ... & ..."
I'm not sure what the problem is specifically. The script is running inside
a try block inside an Xcode project.
If I remove the "try" I get an error of:
sh: fork: Resource temporarily unavailable (128)
The list of IPs are being fed into Gnarlie's shell script here:
repeat with theIP in ipBlock
do shell script "ping -c 1 " & theIP & " >> " & pingPosix & "
2>&1 &"
end repeat
Is there a limit to the number of shell processes I wonder?
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.