|
|
Closing process on other side of pipe
Hi all,
I execute the following command,
$ tail -f <file name> | <my_awk_script>
On certain condition I want to exit from my_awk_script. But when I call
exit() from my_awk_script, though my_awk_script exits, "tail -f "
continues to run.
I want to exit from that also. Any idea how to achieve that?
Thanks,
Sriram.
|
|
0
|
|
|
|
Reply
|
ramsankar (7)
|
7/5/2006 11:42:08 AM |
|
ram <ramsankar@gmail.com> wrote:
> Hi all,
>
> I execute the following command,
> $ tail -f <file name> | <my_awk_script>
>
> On certain condition I want to exit from my_awk_script. But when I call
> exit() from my_awk_script, though my_awk_script exits, "tail -f "
> continues to run.
> I want to exit from that also. Any idea how to achieve that?
ctl-c
> Thanks,
> Sriram.
>
--
Using OpenBSD with or without X & KDE?
http://dfeustel.home.mindspring.com
|
|
0
|
|
|
|
Reply
|
dfeustel
|
7/5/2006 12:18:15 PM
|
|
ram wrote:
> Hi all,
>
> I execute the following command,
> $ tail -f <file name> | <my_awk_script>
>
> On certain condition I want to exit from my_awk_script. But when I call
> exit() from my_awk_script, though my_awk_script exits, "tail -f "
> continues to run.
> I want to exit from that also. Any idea how to achieve that?
>
> Thanks,
> Sriram.
>
That's an OS question, not an awk question. Post it to comp.unix.shell
if you're using UNIX.
Ed.
|
|
0
|
|
|
|
Reply
|
Ed
|
7/5/2006 12:51:57 PM
|
|
ram wrote:
> Hi all,
>
> I execute the following command,
> $ tail -f <file name> | <my_awk_script>
>
> On certain condition I want to exit from my_awk_script. But when I call
> exit() from my_awk_script, though my_awk_script exits, "tail -f "
> continues to run.
> I want to exit from that also. Any idea how to achieve that?
>
> Thanks,
> Sriram.
try
"tail -f ..." |getline
within the prog rather than piping the output from tail. (Untested).
- Paddy.
|
|
0
|
|
|
|
Reply
|
Paddy
|
7/16/2006 5:59:29 AM
|
|
|
3 Replies
242 Views
(page loaded in 0.079 seconds)
Similiar Articles: Closing process on other side of pipe - comp.lang.awkHi all, I execute the following command, $ tail -f | On certain condition I want to exit from my_awk_script. But when I call exit() from my_awk_sc... Two-way pipe on an awk process - comp.lang.awkClosing process on other side of pipe - comp.lang.awk Two-way pipe on an awk process - comp.lang.awk Closing process on other side of pipe - comp.lang.awk Two-way pipe on ... IOERROR Broken Pipe - comp.unix.programmerClosing process on other side of pipe - comp.lang.awk IOERROR Broken Pipe - comp.unix.programmer The problem only happens if I use the pipe to MYSQL. Simple XML processing in AWK - comp.lang.awkClosing process on other side of pipe - comp.lang.awk Simple XML processing in AWK - comp.lang.awk Closing process on other side of pipe - comp.lang.awk Simple XML ... How to pipe in an input list of files to awk - comp.lang.awk ...Closing process on other side of pipe - comp.lang.awk How to pipe in an input list of files to awk - comp.lang.awk ... Closing process on other side of pipe - comp.lang ... exec in AWK - comp.lang.awkClosing process on other side of pipe - comp.lang.awk Hi all, I execute the following command, $ tail -f | On certain condition I want to exit from my_awk_script. Execute command within AWK - comp.lang.awkClosing process on other side of pipe - comp.lang.awk Execute command within AWK - comp.lang.awk Closing process on other side of pipe - comp.lang.awk Hi all, I execute ... Awk Script with multiple condition... - comp.lang.awkClosing process on other side of pipe - comp.lang.awk Hi all, I execute the following command, $ tail -f | On certain condition I want to exit from my_awk_script. Best AWK book? - comp.unix.shellDear All, I would like to get a good beginners introduction to awk, including how to program with awk. Any tips on which book to get - in print or... How to identify a FIFO? - comp.unix.solaris... RDWR How do I find the other side of this pipe? ... both in the > Openldap process ... One end will generally be blocked waiting for the other side to write. Closing process on other side of pipe - comp.lang.awk | Computer GroupHi all, I execute the following command, $ tail -f | On certain condition I want to exit from my_awk_script. But when I call exit() from my_awk_sc... Troubleshooting: No Process Is on the Other End of the PipeNamed Pipes Provider: No process is on the other end of the pipe. Microsoft SQL Server Native Client : Communication link failure. Microsoft SQL Server Native Client ... 7/26/2012 5:30:26 PM
|
|
|
|
|
|
|
|
|