Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Does anyone have any code that will allow a script to tail a file located on a remote system that is “not” nfs mounted?
The code below will tail a file that is NFS mounted:
open (FH,”/tmp/file); for (;;) { while (<FH>) { print “$_\n”; } FH->clearerr; }
But how do I do this on a remote file system and still use filehandles?
Code tags and other markup added by GrandFather
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to tail file on remote host
by Corion (Patriarch) on Sep 30, 2008 at 19:55 UTC | |
by Anonymous Monk on Sep 30, 2008 at 21:22 UTC | |
by Corion (Patriarch) on Sep 30, 2008 at 21:26 UTC | |
by Anonymous Monk on Sep 30, 2008 at 21:45 UTC | |
by Corion (Patriarch) on Oct 01, 2008 at 06:20 UTC | |
by chrism01 (Friar) on Oct 01, 2008 at 06:47 UTC | |
|
Re: How to tail file on remote host
by salva (Canon) on Oct 01, 2008 at 08:13 UTC | |
by wmarquette (Initiate) on Oct 01, 2008 at 19:51 UTC | |
by salva (Canon) on Oct 01, 2008 at 20:06 UTC | |
by wmarquette (Initiate) on Oct 01, 2008 at 20:30 UTC | |
by salva (Canon) on Oct 01, 2008 at 20:43 UTC |