RE: Re: Run option
- To: mathgroup at smc.vnet.net
- Subject: [mg71974] RE: [mg71946] Re: Run option
- From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
- Date: Wed, 6 Dec 2006 06:04:07 -0500 (EST)
- Organization: ITESM
Hello John About your suggestion ReadList["!DIR",Record] It works great in Windows. Do you (or anybody) know if it works in other operative systems (Mac, Linux)? Thanks in advance! Jose -----Mensaje original----- De: John Jowett [mailto:John.Jowett at cern.ch] Enviado el: Martes, 05 de Diciembre de 2006 05:05 a.m. Para: mathgroup at smc.vnet.net Asunto: [mg71946] Re: Run option Chris, It is often better to use ReadList than Run. I always use this for running external "console" programs. No command window appears and it also has the advantage that you can easily capture and manipulate the program's output stream. Compare Run["DIR"] with ReadList["!DIR",Record] Note that you need to prefix the command string with "!". You can also use Import which gives more ways of dealing with the output. I have often wondered if there is any disadvantage to this (why is it not documented?) but have not found any. John Jowett "Chris Chiasson" <chris at chiasson.name> wrote in message news:el11sv$44a$1 at smc.vnet.net... Hi, please add an option to Run that can disable the command window that pops up when an external command is run (on Windows platforms). The present behavior becomes quite annoying when multiple commands are run successively in a batch job. -- http://chris.chiasson.name/