are there shell commands tha wait on somethign

are there shell commands tha wait on somethign

am 14.11.2007 00:04:38 von parag_paul

Rather than me polling evey few seconds,

are there any unix commands ( shell commands in csh )
which will do something like the following.

I am expecting this directory to start filling due to a make process.
Now that shell command will wait till the first filling starts and as
soon as it does it will send some response. I will catch that and then
do the rest

Re: are there shell commands tha wait on somethign

am 14.11.2007 02:52:43 von brian_hiles

"parag_p...@hotmail.com" wrote:
> Rather than me polling evey few seconds,
> are there any unix commands ( shell commands in csh )
> which will do something like the following.
> I am expecting this directory to start filling due to a make process.
> Now that shell command will wait till the first filling starts and as
> soon as it does it will send some response. I will catch that and then
> do the rest

Inasmuch as you do not specify whether the process that fills the
directory
is or is not part of the make(1) actions, or that the make(1) actions
themselves
are expected to catch this state, or even if indeed you are editting
the
make(1) actions directly (which you are presumably _not_ the author
of, else
you would have just changed the applicable action command), we really
require
more information and a demonstration case to answer this effectively.

=Brian

Re: are there shell commands tha wait on somethign

am 14.11.2007 16:25:20 von parag_paul

On Nov 13, 5:52 pm, bsh wrote:
> "parag_p...@hotmail.com" wrote:
> > Rather than me polling evey few seconds,
> > are there any unix commands ( shell commands in csh )
> > which will do something like the following.
> > I am expecting this directory to start filling due to a make process.
> > Now that shell command will wait till the first filling starts and as
> > soon as it does it will send some response. I will catch that and then
> > do the rest
>
> Inasmuch as you do not specify whether the process that fills the
> directory
> is or is not part of the make(1) actions, or that the make(1) actions
> themselves
> are expected to catch this state, or even if indeed you are editting
> the
> make(1) actions directly (which you are presumably _not_ the author
> of, else
> you would have just changed the applicable action command), we really
> require
> more information and a demonstration case to answer this effectively.
>
> =Brian

Well,
I was asking for a generic thing. Something which emulates the
following


ls
ls
ls
ls

When ls is not giving a null output, ping me

Re: are there shell commands tha wait on somethign

am 15.11.2007 17:01:51 von WahJava

=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

,--- parag paul@hotmail com writes:

[...]

| Well,
| I was asking for a generic thing. Something which emulates the
| following


| ls
| ls
| ls
| ls

| When ls is not giving a null output, ping me

If you're on Linux, 'inotify' will help you, which is pushes
filesystem events from the kernel to userspace. Try 'inotifywait' and
'inotifywatch' from inotify-tools[1].

References
[1] - http://inotify-tools.sourceforge.net/

HTH
=2D --=20
Ashish Shukla आशीष शुà¤=
•à¥à¤=B2 http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ··=C2=
=B7- ·- ·--·-· --· -- ·- ·· ·-=
·· ·-·-·- -·-· --- --
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHPG1zHy+EEHYuXnQRAoiZAJ4pbbJAD+CWL0O1mh+2Yd/0amRe7QCg 1oMV
ajLIvXTaRDhrk4sHTGmn+E0=3D
=3D/54C
=2D----END PGP SIGNATURE-----