WaitFor type command?

Posted by DrunkVoltaire on Wed 13 Jan 2010 01:39 AM — 2 posts, 12,297 views.

#0
Hello

I'm new to scripting, and something I've been trying to put together is giving me trouble. I want an alias that will execute a series of commands, but out of the five the first three require a variable to be true. It's the same variable for each one. After each command, the variable will go to false.

What I was hoping for is something like a "WaitFor" function where the script halts and waits for the prerequisite condition (the variable = 1).

However, I cannot find this or even know if this is possible or extant. Thus I cam here for help.

Thank you in advance.
Australia Forum Administrator #1
Template:post=4957
Please see the forum thread: http://gammon.com.au/forum/?id=4957.


I presume this variable becomes true due to some sort of event, so using the ideas there should help.