ScriptBasic

Support => General Discussions => Topic started by: tomo on November 21, 2006, 12:25:21 PM

Title: Pipes, interaction with processes, stderr, etc.
Post by: tomo on November 21, 2006, 12:25:21 PM
Hello

I'm making my first steps to scriptbasic and it seems a nice thing. However, I wonder how far scriptbasic goes as a language for system-level scripting. Is there any elegant way to do pipelining things like in perl, for instance something like: open (PS, "ps -aux |")... and stderr access etc. Thanks.

Tomo
Title: Pipes, interaction with processes, stderr, etc.
Post by: Support on December 17, 2006, 02:50:43 AM
Tomo,

You could use a EXECUTE("executable_program", time_out,pid_v) statement to run your console command. I noticed a problem with Linux 'cat' when trying to append to another file. The operation also showed up on the screen.  :(

I haven't had any other issues with console mode usage and EXECUTE.

John