I want to run perl script automatically every day on win32 with different user than the currently-logged on user could someone provide an idea ? ?

link|improve this question
2  
This is a dupe of many questions on superuser.com. – Ether Dec 29 '09 at 18:35
feedback

migrated from stackoverflow.com Dec 30 '09 at 6:47

This question came from our site for professional and enthusiast programmers.

2 Answers

If you have the administrator password, Windows supports this: http://support.microsoft.com/default.aspx?scid=kb;en-us;294676&sd=tech

There are also sudo-like programs for Windows ( http://sourceforge.net/projects/sudowin/ ) which are somewhat more flexible that runas.

link|improve this answer
That deals with the "with different user" but completely misses the "automatically every day" bit. – ysth Dec 29 '09 at 22:40
feedback

Can't you run the script from the windows' "schedule task"? You can also set it to run with a different user.

Or use RJBS App::Cronjob which I read from his advent calendar here: http://advent.rjbs.manxome.org/2009-12-07.html

Not sure if that will work on windows though...

link|improve this answer
feedback

Your Answer

 
or
required, but never shown