You don't need the cmd file.  Just tell the corrective action to run
perl.exe and put 'D:\scripts\FM_Restart\fmstart.pl' in the command-line
parameters field.  Also, make sure you're not using any mapped or
subst'ed drives, since SYSTEM won't have access to them when it runs the
script.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, July 11, 2006 4:57 AM
To: perl-win32-admin@listserv.ActiveState.com
Subject: w2k corrective action for service

Hi,

We have a service that sometimes crsahes, and afterwards a remote
service
also needs to be restarted for connection reasons. That part I have
already
done, so this probably isn't too perl specific.
I have cmd script that cd's to the directory where the perl script is
and
starts it. This cmd script is entered as the corrective action for the
failing service. My perl program would write a log too.
>From what I can see, even the cmd script doesn't start (can't see it in
process explorer).
Any idea what could be wrong here?

the cmd looks like this:

D:
cd \scripts\FM_Restart
echo running? >>d:\scripts\fm_restart\batlog.txt
e:\perl\bin\perl.exe D:\scripts\FM_Restart\fmstart.pl

Lars
_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to