Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
We have a exe that needs to be run every hour (scheduled task). But before it can be run a few files need to be created from databases and text files and so on...which we use Perl to do.
So our schedule is a perl script that does the things it needs to do in perl, and then uses system() to run the exe.
However, our exe is failing to run. We don't exactly know why, but for some reason it will only run when there is a user logged in, and that user id is the same one that the job is running under.
The exe is an external program that cannot be changed.
So I figure that maybe to solve this I need to fake a login of the user_id running the job, so that when there is no one logged into the server (most of the time) then the job will still work.
Does anyone know if there is a way in Perl for windows to simulate a login?
For information, the user_id running the job has been tested with every possible NT priv, just incase there was a way to do it that way...still not working properly.
Any suggestions would be appreciated.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win NT user impersonation in Perl
by caedes (Pilgrim) on Jul 05, 2002 at 14:26 UTC | |
|
Re: Win NT user impersonation in Perl
by fglock (Vicar) on Jul 05, 2002 at 17:08 UTC | |
|
Re: Win NT user impersonation in Perl
by thunders (Priest) on Jul 05, 2002 at 18:13 UTC | |
|
Re: Win NT user impersonation in Perl
by flounder99 (Friar) on Jul 05, 2002 at 14:39 UTC | |
|
Re: Win NT user impersonation in Perl
by RMGir (Prior) on Jul 05, 2002 at 14:40 UTC | |
|
Re: Win NT user impersonation in Perl
by Anonymous Monk on Jul 05, 2002 at 14:53 UTC |