Click here to get back home

Starting a Perl script with no command prompt window

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Starting a Perl script with no command prompt window PeteOlcott 03-10-2008
Posted by PeteOlcott on March 10, 2008, 10:10 am
Please log in for more thread options
Does anyone know how to start a Perl script as an MS Windows XP Pro
"Scheduled Task" and either have no "command prompt" window, or have
the "command prompt" window be created as minimized?

Posted by ccc31807 on March 10, 2008, 10:39 am
Please log in for more thread options
> Does anyone know how to start a Perl script as an MS Windows XP Pro
> "Scheduled Task" and either have no "command prompt" window, or have
> the "command prompt" window be created as minimized?

Create a batch file that runs the Perl script. Schedule the batch file
as a scheduled task.

CC

Posted by Jürgen Exner on March 10, 2008, 10:50 am
Please log in for more thread options
>Does anyone know how to start a Perl script as an MS Windows XP Pro
>"Scheduled Task"

Same as any other scheduled task.

>and either have no "command prompt" window, or have
>the "command prompt" window be created as minimized?

Call wperl.exe (part of AcitveState Perl) instead of perl.exe as the
interpreter.

jue

Posted by Ben Morrow on March 10, 2008, 11:03 am
Please log in for more thread options

> Does anyone know how to start a Perl script as an MS Windows XP Pro
> "Scheduled Task" and either have no "command prompt" window, or have
> the "command prompt" window be created as minimized?

If you use wperl.exe instead of perl.exe, you don't get a command
window. Of course, if you call any external programs, they probably *do*
create one, so don't do that.

Ben


Posted by PeteOlcott on March 10, 2008, 11:57 am
Please log in for more thread options
>
> > Does anyone know how to start a Perl script as an MS Windows XP Pro
> > "Scheduled Task" and either have no "command prompt" window, or have
> > the "command prompt" window be created as minimized?
>
> If you use wperl.exe instead of perl.exe, you don't get a command
> window. Of course, if you call any external programs, they probably *do*
> create one, so don't do that.
>
> Ben

None of these ideas seemed to work, but, I may have implemented them
incorrectly.

Similar ThreadsPosted
Perl CGI script to emulate a shell command line window January 18, 2005, 12:03 am
Net::SSH::Perl -- can I capture the command prompt? November 14, 2006, 9:33 pm
Is it possible to open a new IE window using a perl command? December 6, 2005, 5:13 pm
Can Perl redirect STDOUT to file AND to command window? November 29, 2005, 2:02 pm
"cpan" command prompt on Mac OS X May 10, 2006, 5:04 pm
TCP connection close after starting a command session February 10, 2005, 5:34 am
opening a temp window from a perl script? December 14, 2004, 11:32 am
problem starting perl script from cron environment - ps: don't know which terminal to select March 19, 2008, 8:24 am
starting CGi shell script February 4, 2005, 9:57 am
Starting Point for backup script January 28, 2005, 3:16 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap