copy large files in Rev on Mac

xavier.bury at clearstream.com xavier.bury at clearstream.com
Wed Dec 5 08:05:36 EST 2007


Since im going to learn some unix to manage our celerras (in red hat 
linux) i thought I'd ask our unix sysadmins...

the solution is indeed the & at the end of the command but to avoid that 
process to be killed (once the original shell is killed),
you should use "nohup <command> & "

dont know if this works in osx but it is std unix they say...

good luck :)


use-revolution-bounces at lists.runrev.com wrote on 05/12/2007 14:00:06:

> Hi Ian,
> 
> > On 5 Dec 2007, at 12:18, Klaus Major wrote:
> >
> >> revCopyFile uses Applescrip which is blocking! At least in Rev, 
> >> but NOT when
> >> using the same script with the AppleScriptEditor!? :-/
> >> Using "shell" is also blocking!
> >
> > This has come up a few times on the list, and basically revolves 
> > around using a shell command that sends it's output to a text file 
> > instead of back to Rev.
> >
> > Rev carries on because as far as it's concerned the shell command 
> > has finished, then you can do some kind of loop checking the output 
> > text file, without blocking.
> >
> > On 14 Aug 2006, at 09:48, Brian Yennie wrote:
> >
> >> You might try something like:
> >>
> >> get shell("mylongcommand > output.txt &")
> 
> That really sounded good, but did not work in the end :-/
> 
> My original blocking script:
> get shell("ditto" && sourcefile && targetfile)
> 
> Now with this extra param the file "targetfile" will be the extra param,
> which is extremely mentally challenging :-D
> # For the "output" file:
> put the tempname into tname
> get shell("ditto" && sourcefile && targetfile && tname && "&")
> 
> Does work non-blocking, but contents of tname = targetfile
> 
> Then I tried this clever trick ;-):
> ...
> get shell("ditto" && sourcefile && targetfile && targetfile && "&")
> which is blocking again...?
> 
> Obviously this trick does not work for copy/ditto actions, or am I 
> overlooking something here?
> 
> 
> Regards
> 
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution



----------------------------------------------------------------------------
Clearstream Services S.A.
42 Avenue JF Kennedy, L-1855 Luxembourg
Société anonyme is organised with limited liability
in the Grand Duchy of Luxembourg R.C.S. Luxembourg B 60911.


-----------------------------------------
Visit us at http://www.clearstream.com

IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents
of this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you
are not the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. Any views expressed in
this e-mail are those of the individual sender, except where the
sender specifically states them to be the views of Clearstream
International or of any of its affiliates or subsidiaries.

Legally required information for business correspondence/
Gesetzliche Pflichtangaben fuer Geschaeftskorrespondenz:
http://deutsche-boerse.com/letterhead

END OF DISCLAIMER


More information about the use-livecode mailing list