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
In reply to Win NT user impersonation in Perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |