Hi,
I’ve run into a problem that has me stumped.
I have written a script that checks a directory for a file with tomorrows date in the filename, re-names the file and FTPs the file off the system. It then checks to see if the transfer was successful and sends an e-mail to notify if the transfer worked of if it failed.
The script works great, as long as I’m logged into the system. If I set it up as a scheduled task, the transfer fails because it can’t find the file.
Since the transfer works fine when I’m logged in and fails if I’m not, I’m having trouble tracking down why it’s failing.
Can a Perl script be set to login as a specific user and then run? If so, how would I do this?
The system in question is running Windows 2000 server
Thank you for your time.
PC
I’ve run into a problem that has me stumped.
I have written a script that checks a directory for a file with tomorrows date in the filename, re-names the file and FTPs the file off the system. It then checks to see if the transfer was successful and sends an e-mail to notify if the transfer worked of if it failed.
The script works great, as long as I’m logged into the system. If I set it up as a scheduled task, the transfer fails because it can’t find the file.
Since the transfer works fine when I’m logged in and fails if I’m not, I’m having trouble tracking down why it’s failing.
Can a Perl script be set to login as a specific user and then run? If so, how would I do this?
The system in question is running Windows 2000 server
Thank you for your time.
PC