Re: finding modules for perl on Linux

2006-01-14 Thread Owen Cook
On Sat, 14 Jan 2006, John Meyer wrote: > > Duh, silly me, forgot the command. > BTW, what's the difference when you run cpan as user v as root. I > assume that the modules are only installed locally then, right. Modules can be installed locally, but if you have access, they are best installed

Re: finding modules for perl on Linux

2006-01-14 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Duh, silly me, forgot the command. BTW, what's the difference when you run cpan as user v as root. I assume that the modules are only installed locally then, right. Owen Cook wrote: > On Sat, 14 Jan 2006, John Meyer wrote: > > Yes, but that seems to

Re: finding modules for perl on Linux

2006-01-14 Thread Owen Cook
On Sat, 14 Jan 2006, John Meyer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, Is there anything like the CPAN program on Linux that lets you > search for and download perl modules for Linux? Yes, but that seems to be a bit of a strange question. As a user, what happens when

finding modules for perl on Linux

2006-01-14 Thread John Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Is there anything like the CPAN program on Linux that lets you search for and download perl modules for Linux? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDy

Re: the 'tail' problem

2006-01-14 Thread Jeff Pang
Thanks for all.I have not tried any CPAN module,since we have nearly 300 hosts running this script,and for installing the CPAN module,I have to su to root,but I have no that privileges. As a tmp resolving way,I add a cron to my crontab,and restart this script at everyday's 00:01,since the symlin

Re: CLOSED? Re: Obtaining complete Unix command line that evoked script as string

2006-01-14 Thread JupiterHost.Net
Hello, Originally my previous post had an explanation of why I really did want the pipes and redirects. I dropped it as I didn't want to be long-winded. Short version: large intermediate data files can be avoided by using pipes. Likewise, I frequently use multiple steps of filtering Ok, s

Re: Win32 distributions - What are people using?

2006-01-14 Thread Robert Hicks
Dan Huston wrote: Greetings All: I noticed on CPAN that there are several Perl ports for Win32. Of course I am aware of ActiveState, but have others had success with any of the others? The main issue I keep running into is installing modules from CPAN using the CPAN module and so I am look

Re: the 'tail' problem

2006-01-14 Thread JupiterHost.Net
Jeff Pang wrote: hi,lists, Hello, I have a log file which is a symbol link to the real logfile,shown as following: $ll mssvr.log lrwxrwxrwx1 cmail root 40 Jan 14 00:00 mssvr.log -> /home/cmail/logs/mssvr.log.2006-01-14 I have to access this file in perl script with unix 'ta

Re: the 'tail' problem

2006-01-14 Thread Jeff Pang
I don't know why it can't work for me. I have tested it as following: $ln -s mssvr.log.2006-01-14 mylog $tail --follow=name --retry mylog Now this command output the content of mssvr.log.2006-01-14 correctly. So I continue to excute these commands (open another terminal): $rm -f mylog $ln -s

Re: the 'tail' problem

2006-01-14 Thread Shawn Corey
Jeff Pang wrote: hi,lists, I have a log file which is a symbol link to the real logfile,shown as following: $ll mssvr.log lrwxrwxrwx1 cmail root 40 Jan 14 00:00 mssvr.log -> /home/cmail/logs/mssvr.log.2006-01-14 I have to access this file in perl script with unix 'tail -f' comma

Re: the 'tail' problem

2006-01-14 Thread John Doe
Jeff Pang am Samstag, 14. Januar 2006 12.52: > Thanks for Adriano.I have tried the way that mentioned by you,and found > it's no use for me. should the '-F' option have no effect for symlinks > maybe? > > -Original Message- > > >From: Adriano Ferreira <[EMAIL PROTECTED]> > >Sent: Jan 14,

Re: the 'tail' problem

2006-01-14 Thread Adriano Ferreira
On 1/14/06, Jeff Pang <[EMAIL PROTECTED]> wrote: > Thanks for Adriano.I have tried the way that mentioned by you,and found it's > no use for me. > should the '-F' option have no effect for symlinks maybe? > Well, that way would be easier if it worked. But I think with some extra logic you can d

Re: the 'tail' problem

2006-01-14 Thread Jeff Pang
Thanks for Adriano.I have tried the way that mentioned by you,and found it's no use for me. should the '-F' option have no effect for symlinks maybe? -Original Message- >From: Adriano Ferreira <[EMAIL PROTECTED]> >Sent: Jan 14, 2006 7:23 PM >To: Jeff Pang <[EMAIL PROTECTED]>, beginners@

Re: the 'tail' problem

2006-01-14 Thread Adriano Ferreira
Jeff, Maybe all you have to do is make some adjustments to the pipe you're opening. Besides the well known "-f" switch, some tail's (like gnu tail) support "-F" which means a file is followed by its name and the opening is retried from time to time. From "man tail" (GNU): -F same as --

the 'tail' problem

2006-01-14 Thread Jeff Pang
hi,lists, I have a log file which is a symbol link to the real logfile,shown as following: $ll mssvr.log lrwxrwxrwx1 cmail root 40 Jan 14 00:00 mssvr.log -> /home/cmail/logs/mssvr.log.2006-01-14 I have to access this file in perl script with unix 'tail -f' command.Part of the cod

CLOSED? Re: Obtaining complete Unix command line that evoked script as string

2006-01-14 Thread Grant Jacobs
I'm going to trial a simplistic shell-based solution initially and later work on anything fancier (see at the end of the message). Thanks for the excursions and excuse my using the wrong forum. I'll just roll all my replies into one post and then stop taking over this forum :-) Im commin