are there shell commands tha wait on somethign

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
parag_paul [ Mi, 14 November 2007 00:04 ] [ ID #1869039 ]

Re: are there shell commands tha wait on somethign

"parag_p... [at] hotmail.com" <parag_p... [at] 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
brian_hiles [ Mi, 14 November 2007 02:52 ] [ ID #1869951 ]

Re: are there shell commands tha wait on somethign

On Nov 13, 5:52 pm, bsh <brian_hi... [at] rocketmail.com> wrote:
> "parag_p... [at] hotmail.com" <parag_p... [at] 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
parag_paul [ Mi, 14 November 2007 16:25 ] [ ID #1869974 ]

Re: are there shell commands tha wait on somethign

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

,--- parag paul [at] 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 --
Ashish Shukla =E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7 =E0=A4=B6=E0=A5=81=E0=A4=
=95=E0=A5=8D=E0=A4=B2 http://wahjava.wordpress.com/
=C2=B7-- =C2=B7- =C2=B7=C2=B7=C2=B7=C2=B7 =C2=B7--- =C2=B7- =C2=B7=C2=B7=C2=
=B7- =C2=B7- =C2=B7--=C2=B7-=C2=B7 --=C2=B7 -- =C2=B7- =C2=B7=C2=B7 =C2=B7-=
=C2=B7=C2=B7 =C2=B7-=C2=B7-=C2=B7- -=C2=B7-=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-----
WahJava [ Do, 15 November 2007 17:01 ] [ ID #1871029 ]
Linux » comp.unix.shell » are there shell commands tha wait on somethign

Vorheriges Thema: a way to place cursor with mouse click on xterm
Nächstes Thema: Re: Bash 1-liner needs refining