Re: Running system() commands in background
From: Trent Curry (tcurrey_at_no.no.i.said.no)
Date: 10/28/03
- Next message: kimbuba: "Re: 10 CDs with best IT eBooks only for $60 - .NET, Java, C#, C++, UNIX, Oracle etc."
- Previous message: stew dean: "Re: Perl and IIS - script runs but 'The page cannot be displayed'"
- In reply to: qazmlp: "Running system() commands in background"
- Next in thread: Purl Gurl: "Re: Running system() commands in background"
- Reply: Purl Gurl: "Re: Running system() commands in background"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 18:05:34 -0800
qazmlp wrote:
> Whenever system("command") is called in a perl script, a new
> (commandline) window opens and shows the execution of the "command".
> What do I need to do if
> I have to run the command in the background? Basically, I do not
> prefer the user to see what is happening when the perl script is being
> executed.
>
> The test was done in Win2K & the solution is required in the same.
>
> Thanks!
Anyone know if this works in windows (it does under unix/linux):
<code type=perl;handtyped>
#!/usr/bin/perl -w
use strict;
exit if fork;
system("command");
</code>
I'm not sure fork will work under win32. Worth a try I suppose.
--
Trent Curry
perl -e
'($s=qq/e29716770256864702379602c6275605/)=~s!([0-9a-f]{2})!pack("h2",$1)!eg
;print(reverse("$s")."\n");'
- Next message: kimbuba: "Re: 10 CDs with best IT eBooks only for $60 - .NET, Java, C#, C++, UNIX, Oracle etc."
- Previous message: stew dean: "Re: Perl and IIS - script runs but 'The page cannot be displayed'"
- In reply to: qazmlp: "Running system() commands in background"
- Next in thread: Purl Gurl: "Re: Running system() commands in background"
- Reply: Purl Gurl: "Re: Running system() commands in background"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|