RE: Bkgnd process that returns immediately

2007-03-19 Thread Mark Powell
  put start /MAX C:\foo.html  C:\foo.txt into MyCom  
  set the hideConsoleWindows to true
  get  start cmd /c   quote  MyCom  quote 
  get shell(it)

To keep the console window from flashing in the snippet above, Xavier
responded


  use start /b to hide the window.


I have tried this, in both line 1 and line 3, and in various ordering.
But the console still flashes.  What am I doing wrong?  

What is the entire single line of script with the /b in the recommended
position?

Gratefully,

Mark
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bkgnd process that returns immediately

2007-03-19 Thread Phil Davis

Hi Mark,

One thing you might find helpful is the 'start' Help info. Open a command line 
(aka DOS) window and at the prompt type:


help start

... or if you want to have the info in a text file type:

help start  my-start-help.txt

(the file will be created in the directory indicated on the prompt line)

HTH -
Phil Davis




Mark Powell wrote:

  put start /MAX C:\foo.html  C:\foo.txt into MyCom 
  set the hideConsoleWindows to true
  get  start cmd /c   quote  MyCom  quote   
  get shell(it)

To keep the console window from flashing in the snippet above, Xavier
responded


  use start /b to hide the window.


I have tried this, in both line 1 and line 3, and in various ordering.
But the console still flashes.  What am I doing wrong?  


What is the entire single line of script with the /b in the recommended
position?

Gratefully,

Mark

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Bkgnd process that returns immediately

2007-03-19 Thread Mark Powell
 Phil Davis wrote:
 One thing you might find helpful is the 'start' Help info. 

Yes, I have done that.  What it indicates is that /B is an optional
argument to start that starts an application without creating a new
window.  But what is not clear is, which of the two lines where 'start'
is used actually get the argument, and how is the full line supposed to
read.

   put start /MAX C:\foo.html  C:\foo.txt into MyCom   
   set the hideConsoleWindows to true 
   get  start cmd /c   quote  MyCom  quote  
   get shell(it)

Some things I have tried for line 1 that do not work
put start /B /MAX C:\foo.html  C:\foo.txt into MyCom
put start /MAX /B C:\foo.html  C:\foo.txt into MyCom
put start C:\foo.html  /MAX /B  C:\foo.txt into MyCom
put start /b /MAX C:\foo.html  C:\foo.txt into MyCom
put start /MAX /b C:\foo.html  C:\foo.txt into MyCom
put start C:\foo.html  /MAX /b  C:\foo.txt into MyCom

and some attempts at line 3
get  start cmd /c /b   quote  MyCom  quote
get  start cmd /b /c   quote  MyCom  quote
get  start cmd /c /B   quote  MyCom  quote
get  start cmd /B /c   quote  MyCom  quote

As you can tell, I am aimlessly trying to pin a tail on the donkey.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Bkgnd process that returns immediately

2007-03-18 Thread Mark Powell
Xavier:  

Thanks for the additional info on the redirect technique.  I have
adapted it to the following

 put start /MAX C:\foo.html  C:\foo.txt into MyCom   
 set the hideConsoleWindows to true 
 get  start cmd /c   quote  MyCom  quote  
 get shell(it)  

and have further questions...

-1-
This does seem to open foo.html without blocking.  However, the console
window flashes despite setting hideConsoleWindows to true. Do you have
that same behavior?  Is this due to the redirect, or is there something
else I can include to keep the console window invisible.

-2-
Suppose I wanted to close the window foo.html via shell.  What would the
text be on the first line before ?

-3-
Can I put multiple lines into mycommand so that shell will run commands
in sequence?

Thanks very much.

Mark

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Bkgnd process that returns immediately

2007-03-18 Thread xavier . bury
1 - use start /b to hide the window. See start /? for more options
2 - you'd have to kill the process - or check start /? for more 
options...
3 - yes as many as you want.

cheers
Xavier

[EMAIL PROTECTED] wrote on 18/03/2007 14:56:20:

 Xavier: 
 
 Thanks for the additional info on the redirect technique.  I have
 adapted it to the following
 
  put start /MAX C:\foo.html  C:\foo.txt into MyCom 
  set the hideConsoleWindows to true 
  get  start cmd /c   quote  MyCom  quote 
  get shell(it) 
 
 and have further questions...
 
 -1-
 This does seem to open foo.html without blocking.  However, the console
 window flashes despite setting hideConsoleWindows to true. Do you have
 that same behavior?  Is this due to the redirect, or is there something
 else I can include to keep the console window invisible.
 
 -2-
 Suppose I wanted to close the window foo.html via shell.  What would the
 text be on the first line before ?
 
 -3-
 Can I put multiple lines into mycommand so that shell will run commands
 in sequence?
 
 Thanks very much.
 
 Mark
 
 ___
 use-revolution mailing list
 use-revolution@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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Bkgnd process that returns immediately

2007-03-16 Thread xavier . bury
Hi Mark,

I just dont use the ampersand and it works like a charm...

cheers
-=-
Xavier

[EMAIL PROTECTED] wrote on 16/03/2007 13:21:54:

 A 2005 thread (from Brian, Xavier, Chipp, et. al) talked about
 re-direction to achieve a non-blocking shell call, using 
 
  get shell(mycommand  mylogfile.log )
 
 My brain cannot get this to work.  Let's say I want Rev to start
 C:\blah.html using shell(), and then continue executing downstream Rev
 handlers.  I've tried variations of
 
  get shell(start  C:\blah.html )
 
 and
 
  get shell(start  C:\shellTemp.txt )
 
   where shellTemp.text contains 
C:\blah.html
   among other variations
 
 but nothing works.  The following 
 
   get shell(start C:\blah.html )
 
 does work, but it is blocking.
 
 I understand the ampersand performs a handoff but am ignorant of the
 overall sequence of events.  What am I doing wrong? 
 
 Mark
 
 ___
 use-revolution mailing list
 use-revolution@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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Bkgnd process that returns immediately

2007-03-16 Thread Mark Powell
 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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Bkgnd process that returns immediately

2007-03-16 Thread xavier . bury
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

[EMAIL PROTECTED] 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@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

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution