Bkgnd process that returns immediately

xavier.bury at clearstream.com xavier.bury at clearstream.com
Fri Mar 16 14:19:22 EDT 2007


Hi Mark,

actually neither of those will do anything... you forgot to put in a 
command between start and the '>' redirect command...


for example:
(diruse gets you the size of a folder for example)

get shell("diruse /m" && thisshare & "findstr /i sub-total")  -- retrieves 
the size of a share on a server which can take lots of time!

works but blocks ya waiting for an answer...

so what you should do is 

put "diruse /m,* \\buffet\mysharename > 
\\buffet\spacelogs$\diruse\bufduser20061127.log" into mycommand
get  "start cmd /c"  && quote & mycommand & quote
get shell(it) 

this will do what you want!

as simple and stupid as you think DOS can be, there's always more to learn 
and remember which may not always be so intuitive!!

cheers
Xavier

use-revolution-bounces at lists.runrev.com wrote on 16/03/2007 16:52:36:

> > Xavier wrote:
> > I just dont use the ampersand and it works like a charm...
> 
> Which one of the literal examples works for you?
> 
>   get shell("start > C:\blah.html")
>   get shell("start > C:\shellTemp.txt")
> 
> If the second, then what is in the targeted file?
> 
> _______________________________________________
> 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 RC 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