Re: [dev] New utility "when"

From: Rob <robpilling_AT_gmail.com>
Date: Wed, 11 Dec 2013 21:36:06 +0000 (GMT)

On Wed, 11 Dec 2013, Andrew Gwozdziewycz wrote:

> On Wed, Dec 11, 2013 at 4:23 PM, Calvin Morrison <mutantturkey_AT_gmail.com> wrote:
>> I'm confused how this is different than the usual
>>
>> longrunningscript.sh && generic_notify_command
>>
>> Could you clarify?
>
> Using -t, you can notify when the longrunningscript is actually still
> running. So it's very useful if you have something that fails
> repeatedly and get an alert when it actually starts.

So basically if you have a command that takes input, like ssh, it's like
being able to do this:

[local-machine %] ssh user_AT_host & && xmessage connected
[ssh-machine %] ...

`xmessage connected' will be executed even though ssh hasn't exit(0)'d
yet.



Rob
Received on Wed Dec 11 2013 - 22:36:06 CET

This archive was generated by hypermail 2.3.0 : Wed Dec 11 2013 - 22:48:06 CET