Re: Is it possible to multi-thread do shell script?
Re: Is it possible to multi-thread do shell script?
- Subject: Re: Is it possible to multi-thread do shell script?
- From: Paul Skinner <email@hidden>
- Date: Sun, 06 Dec 2009 17:27:17 -0500
Sorry, that should have read 'ignoring application responses' block.
Paul
On Dec 6, 2009, at 5:25 PM, Paul Skinner wrote:
Patrik,
Did you try putting each do shell script statement in an ignoring
applications block? As long as you don't need the results from the
do shell script command that should cause them each to run
concurrently. Each in it's own process.
Paul
On Dec 6, 2009, at 4:22 PM, Patrik wrote:
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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