Author Topic: Pipes, interaction with processes, stderr, etc.  (Read 8595 times)

tomo

  • Guest
Pipes, interaction with processes, stderr, etc.
« 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

Support

  • Administrator
  • *****
  • Posts: 22
    • View Profile
Pipes, interaction with processes, stderr, etc.
« Reply #1 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