Hello,

not much experience with complicated 'call set-up on my side, but I did 
few tidbits here or there. Here's my experience with command line.

1) you can use redirection to file directly on command-line - not 
requiring rebol imo. Here's an example:

call "dir c: >> test.txt"
print read %test.txt

2) if you want to get your data into REBOL, you are doing it correctly. 
You either use string, or file, or port, according to 'call help:

   /output -- Redirects stdout to out
        out -- (Type: string port file url none)

hence following works:

call/output "dir c:" %test2.txt
print read %test2.txt

So - if it does not work for you, check if you are using latest REBOL 
version, and if so, I think that plink itself might be the culprit, not 
giving output properly to console ....

-pekr-

Thorsten Moeller napsal(a):
> 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 adw...@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 adw...@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
>
>
>   

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to