Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Problem with call function

From: tmoeller:fastmail:fm at: 9-Sep-2009 15:07

Hi Semseddin, great! It works! I tried a lot of options an the redirect on the command line, but witout the /shell option. From the online help that does not become clear to me. OK.Always learning...... Thanks a lot your help and making this List one of the most helpful ones i know. Thorsten On Wed, 09 Sep 2009 14:14 +0300, "Semseddin Moldibi [ Bircom ]" <semseddinm-bircom.com> wrote:
> Hi, > You may try to redirect your output in your command line string; > call/shell "test.exe >c:\test.txt" ;does not work without /shell > > > -----Original Message----- > > From: rebol-bounce-rebol.com [mailto:rebol-bounce-rebol.com] On Behalf > > Of Thorsten Moeller > > Sent: Wednesday, September 09, 2009 11:55 AM > > To: Rebol Mailinglist > > Subject: [REBOL] Problem with call function > > > > > > Hi, > > > > i am getting al little crazy at this moment. I have a small script > > which > > should collect some performance data from a Linux box via plink > > commandline call on a Windows box. > > > > This is the line of code: call/output/wait {plink adwh01-p-ng-db2ux1-b > > -pw 10hwda -m LinMon.cmd} %myout.txt > > > > So if i modify this to see the output on the console like this: > > > > call/console/wait {plink adwh01-p-ng-db2ux1-b -pw 10hwda -m > LinMon.cmd} > > > > everything runs fine. But i need this to be written into a file for > > later analysis. This what is not working here. I tried some more > somple > > command like a dir, This works with /output option. > > > > So, i guess it depends on the plink command. Perhaps cannot find the > > output parameter behind it?? > > > > Instead of writing it to a file i tried to write it to a Rebol String > > which fails as well. > > > > Hope there is anyone who can help me out of this misery. > > > > Thorsten > > > > > > -- > > http://www.fastmail.fm - Send your email first class > > > > -- > > To unsubscribe from the list, just send an email to > > lists at rebol.com with unsubscribe as the subject. > > -- > To unsubscribe from the list, just send an email to > lists at rebol.com with unsubscribe as the subject. >
-- http://www.fastmail.fm - Choose from over 50 domains or use your own