I want to turn my pc on using WOL and then open up a game (in one go, using IFTTT). Is there a way to hold a command and trigger it once the pc is turned on and the Trigger CMD client started?
@dinco WOL works when one device sends a signal to another on the same network. For your idea to work, you'd need to run one command on one device and then another command on a different device.
@dinco, like @Xander said, WOL needs a second device/computer on your network to turn on your PC. The script you run on that second device could in theory turn on your PC, then loop until the PC until it's up, then use the tcmd command to remotely run a command on the PC.
The trick is what to put in the loop to detect whether the Trigger CMD agent started.
This is one idea this:
- Wait 10 seconds
- Use tcmd to run a script on the PC that runs a command on the original PC that just creates a flag file.
- If the flag file is detected, delete it and exit the loop.
You'd want uncheck this in your profile page if you do that though. Otherwise you'll get an email saying the command didn't run because the agent isn't started.