[REBOL] Re: Problem with call function
From: petr:krenzelok:seznam:cz at: 9-Sep-2009 11:38
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):