• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ignoring responses from "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ignoring responses from "do shell script"


  • Subject: Re: Ignoring responses from "do shell script"
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 11 Mar 2004 14:34:05 -0800

On Mar 10, 2004, at 10:45 PM, Graff wrote:

Is there a limit to the number of shell processes I wonder?

Most likely, yes. I mentioned this a bit further up in the message thread along with a solution (which I found a bug in and fixed below). Basically it looks like there is a hard limit of the number of processes each user can have going at once under Darwin (the Unix base for Mac OS X). This limit appears to be 100, you can read a little about it here:
<http://www.opendarwin.org/pipermail/hackers/2003-April/001653.html>

As the article Graff mentions also points out, the limit defaults to 100, but is no longer hardcoded -- you can get the current value using the shell command "sysctl kern.maxprocperuid". It's unlikely to ever be less than 100, though, unless you've got a particularly cruel sysadmin.

In case anyone is wondering, this sort of thing exists to keep any single user from chewing up too many resources, and in particular to prevent "fork bombs", where a single process keeps forking ad nauseam. (This can happen either maliciously or accidentally.)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.


References: 
 >Re: Ignoring responses from "do shell script" (From: Martin Orpen <email@hidden>)
 >Re: Ignoring responses from "do shell script" (From: Graff <email@hidden>)

  • Prev by Date: Re: Date object into FMP field
  • Next by Date: Re: Reverse Offset (was Getting the Folder name when using drag-&-drop Scripts)
  • Previous by thread: Re: Ignoring responses from "do shell script"
  • Next by thread: Simple delete
  • Index(es):
    • Date
    • Thread