How to run a perl script in background on Windows?
How to run a perl script in background on Windows?
am 03.08.2011 18:48:53 von Jose Marquez
Hi there
=0ASure I am the newbiest of all Perl newbies in this group .=
....
=0AJust have been reading some of the posts you all have sent sinc=
e I=A0subscribe to this list
What I'm trying to learn these days=
is how I run a Perl script in background on Windows. Can anybody give a hi=
nt on it?
=0AAppreciate very much all the help you guys can provide me=
=0ACheers
=0AJM
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: How to run a perl script in background on Windows?
am 03.08.2011 23:00:42 von byulga
Jose Marquez wrote:
> Hi there
>
> Sure I am the newbiest of all Perl newbies in this group ....
>
> Just have been reading some of the posts you all have sent since I subscribe to this list
>
> What I'm trying to learn these days is how I run a Perl script in background on Windows. Can anybody give a hint on it?
>
Hi Jose,
As far as I know, the Windows cmd.exe environment doesn't let you
background a process the same way a unix shell does with '&'. However,
I have used "start" to achieve a similar effect when launching a script:
C:\> start /b perl script.pl
Type "start /?" at a cmd prompt to read about the "/B" switch. With
this switch, you'll still have the cmd.exe window open, but the prompt
will return immediately.
Also, I use this with Strawberry Perl; I don't know if ActiveState has
other tricks you can use.
Brian
>
> Appreciate very much all the help you guys can provide me
>
> Cheers
>
> JM
>
>
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: How to run a perl script in background on Windows?
am 04.08.2011 00:43:23 von timothy adigun
--0016e65b5d7e84707904a9a197bf
Content-Type: text/plain; charset=ISO-8859-1
Hi Jose,
If you are using ActiveState you could use wperl.exe from your CLI, instead
of perl.exe.
Regards
On Wed, Aug 3, 2011 at 10:00 PM, Brian F. Yulga wrote:
> Jose Marquez wrote:
>
>> Hi there
>> Sure I am the newbiest of all Perl newbies in this group ....
>> Just have been reading some of the posts you all have sent since I
>> subscribe to this list What I'm trying to learn these days is how I run a
>> Perl script in background on Windows. Can anybody give a hint on it?
>>
>>
> Hi Jose,
>
> As far as I know, the Windows cmd.exe environment doesn't let you
> background a process the same way a unix shell does with '&'. However, I
> have used "start" to achieve a similar effect when launching a script:
>
> C:\> start /b perl script.pl
>
> Type "start /?" at a cmd prompt to read about the "/B" switch. With this
> switch, you'll still have the cmd.exe window open, but the prompt will
> return immediately.
>
> Also, I use this with Strawberry Perl; I don't know if ActiveState has
> other tricks you can use.
>
> Brian
>
>
> Appreciate very much all the help you guys can provide me
>> Cheers
>> JM
>>
>>
>>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>
--0016e65b5d7e84707904a9a197bf--
Re: How to run a perl script in background on Windows?
am 04.08.2011 00:50:42 von Sheppy R
--0016364edfd2ac1e0404a9a1b1d0
Content-Type: text/plain; charset=ISO-8859-1
If you are trying to run this at Startup you can set up the AutoExnt service
to run a .bat that launches the .pl file.
@Timothy - Sorry for the reply.
On Wed, Aug 3, 2011 at 6:43 PM, timothy adigun <2teezperl@gmail.com> wrote:
> Hi Jose,
> If you are using ActiveState you could use wperl.exe from your CLI,
> instead
> of perl.exe.
> Regards
>
> On Wed, Aug 3, 2011 at 10:00 PM, Brian F. Yulga
> >wrote:
>
> > Jose Marquez wrote:
> >
> >> Hi there
> >> Sure I am the newbiest of all Perl newbies in this group ....
> >> Just have been reading some of the posts you all have sent since I
> >> subscribe to this list What I'm trying to learn these days is how I
> run a
> >> Perl script in background on Windows. Can anybody give a hint on it?
> >>
> >>
> > Hi Jose,
> >
> > As far as I know, the Windows cmd.exe environment doesn't let you
> > background a process the same way a unix shell does with '&'. However, I
> > have used "start" to achieve a similar effect when launching a script:
> >
> > C:\> start /b perl script.pl
> >
> > Type "start /?" at a cmd prompt to read about the "/B" switch. With this
> > switch, you'll still have the cmd.exe window open, but the prompt will
> > return immediately.
> >
> > Also, I use this with Strawberry Perl; I don't know if ActiveState has
> > other tricks you can use.
> >
> > Brian
> >
> >
> > Appreciate very much all the help you guys can provide me
> >> Cheers
> >> JM
> >>
> >>
> >>
> >
> > --
> > To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> > For additional commands, e-mail: beginners-help@perl.org
> > http://learn.perl.org/
> >
> >
> >
>
--0016364edfd2ac1e0404a9a1b1d0--
Re: How to run a perl script in background on Windows?
am 04.08.2011 00:53:18 von Shawn H Corey
On 11-08-03 12:48 PM, Jose Marquez wrote:
> What I'm trying to learn these days is how I run a Perl script in background on Windows. Can anybody give a hint on it?
From the GUI: open a new Command Prompt, start the program, minimize
the window until its done.
To do it from a Perl script, you'll need Win32::Process
http://metacpan.org/module/Win32::Process
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
"Make something worthwhile." -- Dear Hunter
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: How to run a perl script in background on Windows?
am 04.08.2011 01:00:16 von Rob Dixon
On 03/08/2011 22:00, Brian F. Yulga wrote:
> Jose Marquez wrote:
>> Hi there
>> Sure I am the newbiest of all Perl newbies in this group ....
>> Just have been reading some of the posts you all have sent since I
>> subscribe to this list What I'm trying to learn these days is how I
>> run a Perl script in background on Windows. Can anybody give a hint on
>> it?
>
> As far as I know, the Windows cmd.exe environment doesn't let you
> background a process the same way a unix shell does with '&'. However, I
> have used "start" to achieve a similar effect when launching a script:
>
> C:\> start /b perl script.pl
>
> Type "start /?" at a cmd prompt to read about the "/B" switch. With this
> switch, you'll still have the cmd.exe window open, but the prompt will
> return immediately.
>
> Also, I use this with Strawberry Perl; I don't know if ActiveState has
> other tricks you can use.
It depends what you expect of a background program.
At a cmd prompt,
start perl script.pl
will start the program executing in a new window of its own, and all IO
to stdout and from stdin is done through that window. Another cmd prompt
will appear straight away in the original window unless you use
start /wait perl script.pl
Alternatively, as Brian says
start /b perl script.pl
starts the program without opening a new window. Anything it sends to
stdout will appear in your current current window, but there is no way
to type anything to stdin.
Finally, if by 'background' you mean to run the program at low priority,
then
start /low perl script.pl
is what you need.
Clearly these command qualifiers can be combined as necessary.
Rob
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
Re: How to run a perl script in background on Windows?
am 05.08.2011 16:34:37 von Christian Walde
On Wed, 03 Aug 2011 18:48:53 +0200, Jose Marquez wro=
te:
> What I'm trying to learn these days is how I run a Perl script in backg=
round on Windows. Can anybody give a hint on it?
If you mean "running it without a console window", then Win32::Detached i=
s what you want to use.
--=20
With regards,
Christian Walde
--=20
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/