• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Stacking commands

General Discussion
3
3
353
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    dinco
    last edited by Apr 21, 2022, 2:11 PM

    Hello,

    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?

    X R 2 Replies Last reply Apr 21, 2022, 2:47 PM Reply Quote 0
    • X
      Xander @dinco
      last edited by Apr 21, 2022, 2:47 PM

      @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.

      1 Reply Last reply Reply Quote 0
      • R
        Russ @dinco
        last edited by Russ Apr 23, 2022, 12:13 PM Apr 22, 2022, 1:40 AM

        @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.
        88b5c88a-d267-492f-86cc-025908202a6b-image.png

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post