I use WebWatchbot to monitor a remote web server. When it detects an outage it can execute a program, and/or load a URL. I have a macro script that logs into the remote server (using RAdmin) and restarts the web server process. Ideally, WebWatchbot would simply run this "Bounce Server" macro when it detected an outage.
Problem - WebWatchBot executes the program in the background, which does not work for the macro script. Is there any way I can
1) create a separate script that will run the Bounce Server macro in the foreground? e.g. WebWatchbot calls this script which then calls the Bounce script.
2) initiate the Bounce Server macro by loading a URL?
As a last resort, I could modify my script so that it checks an Exchange email account, and bounces the server when it receives an alert email from WebWatchBot.
Cheers
Running a script from WebWatchbot
Moderators: JRL, Dorian (MJT support)
Run script interactive
You could you PStools PSexec by having WebWatchBot execute psexec -i \\pcname msched macroname
the -i switch makes the command to run interactive with the console session.
the -i switch makes the command to run interactive with the console session.