[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Waiting for outpu

From: stoyboy
Subject: Waiting for outpu
Date: Tue, 10 Jun 2008 18:11:26 -0700 (PDT)

I am trying to create a script that will run continuously until the out of a
command reaches a specific point.
I have a command called showOutput and all it does it output the progress of
running job, i want to create a script or a command that will process this
output and do something else once it sees the job has gotten to a specific
point. What I have come up with so far is something like this:

#this will give me only the 1 specific line i am waiting to see
showOutput | grep "condition"

#if i use this in an if statement or a loop like this:
until [ $( showOutput | grep "condition" ) ] do sleep(60); done
#run other command here

but i think because showOutput does not have an eof things dont work right
if anyone can help that would be greatly appreciated

View this message in context: 
Sent from the Gnu - Bash mailing list archive at Nabble.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]