[Mono-list] Capturing output from Linux Command Line programs

2005-08-18 Thread mono-list . 1 . tracyanne
Dilton McGowan II diltonm at yahoo.com Tue Aug 16 19:38:50 EDT 2005 Using the code from your original post, substituting ls for wget works. standard is not always standard. IIRC, some programs output to screen memory for speed rather than through the BIOS character IO subsystem. So I

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread Andrew Forgue
On Tue, 2005-08-16 at 21:58 +1000, [EMAIL PROTECTED] wrote: If you had bothered to read the thread you would not only have seen that I asked my question in plain English, but that I also clarified it several times, for those who didn't take the trouble to read the question properly in the

[Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread mono-list . 1 . tracyanne
Further testing using mkisofs, leads me to believe that although output is being redirected (where to, I don't know) but the program seems to block at this line StreamReader sr = process.StandardOutput; while process waits for output from mkisofs, I assume. output from my test app is

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread Paul F. Johnson
Hi, Can anyone show me where I have gone wrong. Can't you just say mono myprog.exe output.txt? TTFN Paul -- A lot of football success is in the mind. You must believe you are the best and then make sure that you are. In my time at Liverpool we always said we had the best two teams on

[Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread mono-list . 1 . tracyanne
Hi, Anyone want to tell me how I can interact with a command line program like say cdrecord in the same way that X-CD-Roast does, but using Mono and C#. From memory of reading the source to xcdroast, it sits on events and signals from the command line and acts on them. Have you a

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread Paul
Hi, I'm not not using the Command line, and nowhere have I used . How are you launching the mono application? Have you got it so that .exe is associated with mono? I am trying to capture stdout from command line programs so I can use that output in real time in a GUI application. In which

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread James Fitzsimons
Hi there, On Tue, 2005-08-16 at 07:33 +1000, [EMAIL PROTECTED] wrote: Can't you just say mono myprog.exe output.txt? No. Actually if you are using Console.WriteLine in your command line program then mono myprog.exe output.txt will work perfectly. I use this technique all the time.

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread Paul F. Johnson
Hi, Read my first post in this thread. Look at the code. It's the test case. Must I? Nah, other things to do. TTFN Paul -- A lot of football success is in the mind. You must believe you are the best and then make sure that you are. In my time at Liverpool we always said we had the best two

[Mono-list] Capturing output from Linux Command Line programs

2005-08-17 Thread mono-list . 1 . tracyanne
Date: Wed, 17 Aug 2005 08:27:45 -0700 (PDT) From: Dilton McGowan II [EMAIL PROTECTED] Subject: Re: [Mono-list] Capturing output from Linux Command Line programs To: [EMAIL PROTECTED], mono-list@lists.ximian.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Paul F. Johnon
Hi, Anyone want to tell me how I can interact with a command line program like say cdrecord in the same way that X-CD-Roast does, but using Mono and C#. From memory of reading the source to xcdroast, it sits on events and signals from the command line and acts on them. Have you a test case

[Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread mono-list . 1 . tracyanne
Hi, Yes you can, and this has nothing to do with what I am trying to do. Please read my original post. My problem has absolutely nothing to do with capuring output from MY program. I'm trying to capture output from existing linux Command Line program like wget, mkisofs and others,

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Elliott Draper
[EMAIL PROTECTED] wrote: Hi, Yes you can, and this has nothing to do with what I am trying to do. Please read my original post. My problem has absolutely nothing to do with capuring output from MY program. I'm trying to capture output from existing linux Command Line program like wget,

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread kevin mulholland
So the real question was, how can I capture the output of a linux command line program so that I can use it as input within my mono program. A couple of ways suggest themselves 1. from within your app, run a shell process (spawn or whatever mono uses) with command line prog (someprog somefile)

[Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread mono-list . 1 . tracyanne
What's wrong with firing off a System.Diagnostics.Process that executes it, and reading the output from the StandardOutput stream on the process? You say that Process does not seem to function as expected; howso? Regards, -= El =- Try this, using System; using System.Diagnostics;

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Paul F. Johnon
Hi, Yes you can, and this has nothing to do with what I am trying to do. Please read my original post. My problem has absolutely nothing to do with capuring output from MY program. I'm trying to capture output from existing linux Command Line program like wget, mkisofs and others, so I can

[Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread mono-list . 1 . tracyanne
I'm trying to work out how to capture stdout, and or pass data to stdin of Linux Command line programs; for example wget. I have the following code using System; using System.Diagnostics; using System.IO; class MainClass { public static void Main(string[] args) {

[Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread mono-list . 1 . tracyanne
Hi there, On Tue, 2005-08-16 at 07:33 +1000, mono-list.1.tracyanne at spamgourmet.com wrote: Can't you just say mono myprog.exe output.txt? No. Actually if you are using Console.WriteLine in your command line program then mono myprog.exe output.txt will work perfectly. I use

RE: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Jonathan Gilbert
At 01:20 PM 16/08/2005 +0100, Chris Aitken chris-at-ion-dreams.com |mono-list subscription| wrote: Tracy, If you need help with this, shout (I wrote it). public class GACReader { private static void Main() { System.Diagnostics.Process GACRead;

RE: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Chris Aitken
At 01:20 PM 16/08/2005 +0100, Chris Aitken chris-at-ion-dreams.com |mono-list subscription| wrote: Tracy, If you need help with this, shout (I wrote it). public class GACReader { private static void Main() { System.Diagnostics.Process GACRead;

RE: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Chris Aitken
Tracy, If you need help with this, shout (I wrote it). public class GACReader { private static void Main() { System.Diagnostics.Process GACRead; GACRead = new System.Diagnostics.Process(); GACRead.StartInfo.FileName =

Re: [Mono-list] Capturing output from Linux Command Line programs

2005-08-16 Thread Dilton McGowan II
--- [EMAIL PROTECTED] wrote: Please read my original post. My problem has absolutely nothing to do with capuring output from MY program. Using the code from your original post, substituting ls for wget works. standard is not always standard. IIRC, some programs output to screen memory for

[Mono-list] Capturing output from Linux Command Line programs

2005-08-15 Thread mono-list . 1 . tracyanne
Hi, Can anyone show me where I have gone wrong. Can't you just say mono myprog.exe output.txt? TTFN No. Regards Tracy Barlow ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list

[Mono-list] Capturing output from Linux Command Line programs

2005-08-15 Thread mono-list . 1 . tracyanne
try using 21 instead of Joel. I'm not not using the Command line, and nowhere have I used . I am trying to capture stdout from commandline programs so I can use that output in real time in a GUI application. Can I have some sensible replies please. Regards Tracy Barlow