Project Description:
I need an Windows agent that runs as a Windows service in background (No user GUI).
Agent needs a settings .ini file:
Server URL www.example.com
ComputerID 102
Webpage poll interval in seconds 30
Textbeforcmd DO:
Agent runs as described:
Agent polls a webserver stated in the .ini file (every x second): www.example.com/poll.php?id=102
If the polled page outputs: "DO:NOTHING" don't do anything.
if the polled page shows up an error of anyking, don't do anything.
If the polled page shows up:
DO:dir
6611662
600
Run dir in command prompt and grab the output to a log file named 6611662.log.
if command has not completed in 600 seconds, end task.
when command completes, load url: www.example.com/exit.php?task=6611662&code=2
if command completes before timelimit
load url: www.example.com/exit.php?task=6611662&code=1
I'd like to send the output log to webserver also.