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

tomo

  • Guest
Pipes, interaction with processes, stderr, etc.
« on: November 21, 2006, 01: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: 859
    • Script BASIC Open Source Project
Pipes, interaction with processes, stderr, etc.
« Reply #1 on: December 17, 2006, 03: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
Script BASIC Project Manager