in reply to Re: Calling external commands through my script
in thread Calling external commands through my script

It's actually that I want to call the program, which will run and then create a file that I will process. Everything is done on Linux OS. So you think <system> is OK to go, right?
  • Comment on Re^2: Calling external commands through my script

Replies are listed 'Best First'.
Re^3: Calling external commands through my script
by kennethk (Abbot) on Feb 25, 2014 at 00:53 UTC
    system is a good solution if the program should be blocking, you have no need to interact with STDIN/STDOUT/STDERR, and you don't need to worry about a timeout. Be aware that any STDOUT or STDERR the program generates will just get tacked onto your perl IO channels.

    I'd recommend using a list-based call to avoid escaping complications (e.g. system($executable, @args);) but again, that's generic advice.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.