ScriptBasic
February 09, 2012, 07:39:16 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Registration Disabled Send an e-mail to support @ scriptbasic.org to request a membership to this forum. (include desired forum name)
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Pipes, interaction with processes, stderr, etc.  (Read 1932 times)
tomo
Guest
« 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
Logged
support
Administrator
*****
Posts: 369


« 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.  Sad

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

John
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!