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: Axel Luttgens <email@hidden>
- Date: Mon, 7 Dec 2009 08:56:39 +0100
Le 6 déc. 2009 à 22:22, Patrik a écrit :
> 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.
Hello Patrick,
You need to fully detach the process. On the other hand, the behavior of the command itself may render it more or less compatible with a background execution.
Could you first try with variations around something like this on the command line
/path/to/pdftk arg1 arg2 ... argN &>/tmp/pdftk.log &
and see whether you can achieve a successful background execution, ending with a valid pdf file and no errors reported in pdftk.log?
HTH,
Axel
_______________________________________________
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