Is it possible to multi-thread do shell script?
Is it possible to multi-thread do shell script?
- Subject: Is it possible to multi-thread do shell script?
- From: Patrik <email@hidden>
- Date: Sun, 06 Dec 2009 13:22:11 -0800
Hi,
I am trying to split several pdfs at the same time using a do shell
script command. However so far everything goes linear. (i.e. file 1,
then file 2 and then file 3) with a repeat loop.
Is it possible to script it so that it issues the command 5 times to 5
different instances of a shell or to make it a background process?
I read adding an ampersand at the end of the command should do the trick
but no luck so far. Still goes linear. I.e. it waits until the last
process is finished before launching the next.
I am running snow leopard 10.6.2 and have 16 cores but am using only 1
for this splitting action which seems a waste. The pgm I am trying to
use is pdftk but I am planning on using it with other command line pgms
as well.
Can anyone tell me if this can be done at all?
Any help on this would be really appreciated!
Best, Patrik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden