Jenda Krynicky wrote:
From: aroushdi <[EMAIL PROTECTED]>

I am writing a script to ask for some variables , construct the
command then launch  the command with qx or backtick . The command
works fine . My problem is that the command monopolizes a console
session ( I can kill it and my fired command still works ) . what i
need is to fir the command in the background and exit the perl shell .
any suggestions ur help is greatly appreciated


Why do you use qx or backticks if you aparently do not want to capture the program's output? You should be using system() instead.

And if you want system() start the program and return immediately you just use it like this:

        system( 1, 'the_program and parameters');
or
        system( 1, 'the_program', @parameters);

HTH, Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


Thank u for the tip ,

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to