in reply to while loop

The logic for that could look something like this:

sub notfree { # returns true if license not free # whatever you do with parsing lmstat } LOOP: { if (notfree @args) { sleep $sane_interval; redo LOOP; } else { system( @other_args); } }
I'm not entirely clear on what you want, but that should be close. I didn't include the logout part because that doesn't sound right to me. Most unix commands don't do that to the user. Could you describe what you're doing in more detail, so we can understand your requirements better?

After Compline,
Zaxo

Replies are listed 'Best First'.
Re^2: while loop
by ikegami (Patriarch) on Apr 25, 2006 at 16:28 UTC
    By "logout", I think he means "free the license handle".