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

    Stacking commands

    General Discussion
    3
    3
    277
    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

      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?

      XanderX RussR 2 Replies Last reply Reply Quote 0
      • XanderX
        Xander @dinco
        last edited by

        @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
        • RussR
          Russ @dinco
          last edited by Russ

          @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
          • First post
            Last post