I need to automatically run a Perl script periodically on an NT machine.
So, I tried to used NT's AT command.  No luck.

I was careful, I believe, to avoid the usual traps of the environment being
different when run by the AT command versus when run by me from the command
line.

As a test, I have a script in "D:\Scripts\test.pl" which (by now) contains
nothing more than some Perl comment lines and some blank lines ending with 

        exit(0);

Using the AT command from the command prompt, I enter

 AT hh:mm "D:\Perl\bin\perl.exe D:\Scripts\test.pl"

where hh:mm is one minute in the future.  The request gets properly recorded
as demonstrated by executing AT without arguments.  However, when the
specified time rolls around and I do the AT command again without arguments,
the word "Error" appears the status of the requested execution.

I ran these tests logged as as the administrator.

As someone's suggestion, I also tried running with the /INTERACTIVE switch,
but still nothing appeared.

Any ideas?

Merrill
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to