Re: [Perl-unix-users] Setting up Perl perl5.005_03 on x86_64 bit

2007-05-25 Thread Jeff D
I may be stating the obvious here, but seeing that no one else has responded... in that thread, they discuss the fact that the person is trying to compile a "very old perl with a (very) new gcc". If you must stay with perl5.005_03, have you considered installing an older gcc to try to build thi

Re: [Perl-unix-users] parsing ARGV

2005-11-03 Thread Jeff D
Take a look at the perl documentation for Getopt::Std (for letter type switches...i.e: "-s") and/or Getopt::Long (for word type switches ). I believe these modules are included with every standard Perl distribution. There are plenty of code samples in the documentation to get you rolling. HTH JD

[Perl-unix-users] Re: A tough question...

2005-09-29 Thread Jeff D
Steve, Agreed a FILE can be deleted/rewritten in this manner, but according to his message, I'm pretty sure that he is discussing a log DIRECTORY. Jeff --- Steve Dawson <[EMAIL PROTECTED]> wrote: > Quoting Jeff D <[EMAIL PROTECTED]>: > > > Look for all files (.pl

[Perl-unix-users] Re: A tough question...

2005-09-29 Thread Jeff D
Ditto to what Brian says about changing perms on the directory. A bit of a brute force method here, but if you're scrapped for time and don't want to wait for the deletion attempt to take place, you could also try doing a "find grep" from your MySystem directory. Look for all files (.pl?, .c?) an

Re: [Perl-unix-users] Filesystem Block Size...how to get?

2005-09-20 Thread Jeff D
Try using the File::stat module...it works fine for me on RHES and 7.2 use File::stat; my $file = "./blah"; my $st = ""; my $blocksize = 0; $st = stat($file); $blocksize = $st->blksize; print "Blocksize: [$blocksize]\n"; HTH JD --- Arijit Das <[EMAIL PROTECTED]> wrote: > Thanks Bruce...Your

Re: [Perl-unix-users] getprotobyname

2004-09-08 Thread Jeff D
According to O'Reilly's Programming Perl book, getprotobyname is a perl built in function, so no additional modules are required. I've tried your code on both SunOS 5.6 and SunOS5.8 with perl 5.00503 and receive no errors. Have you tried your code with other comm protocols? Ie substitute the udp

Re: [Perl-unix-users] getting the user uid

2004-08-11 Thread Jeff D
The short answer would be to set a variable to the output of the command using backticks. ie: $id_info = `/path/to/id`; chomp $id_info; And then using various splits, you will be able to get at individual pieces of the return. HTH JD --- Márcio_Oliveira <[EMAIL PROTECTED]> wrote: > hi!

Re: [Perl-unix-users] cpan error

2004-08-11 Thread Jeff D
Miguel, The installation location for perl mods is actually baked into the perl package that you are using (various Config.pm's). I have two separate versions of perl (5.005.03 and 5.8.3) and use the cpan shell to download/install perl mods. If you go this route and just modify your path to pick

Re: [Perl-unix-users] Urgent: Local time scalar conversion

2004-07-23 Thread Jeff D
Try sprintf Just add an 's' in front of your printf and you should be square. --- Craig Sharp <[EMAIL PROTECTED]> wrote: > I need to get 2 digit time and date in a scalar > when there is only 1 digit. > > Eg: Using printf with %02d, I am able to get 05 to > print at 5 min past the hour. > >

Re: [Perl-unix-users] remove line 1 from text file

2004-05-27 Thread Jeff D
FYI...I was able to execute your code successfully with a ten-thousand line file. A diff between the two files displays the expected results. If this is just a snippet, perhaps your problem lies elsewhere within the script? --- [EMAIL PROTECTED] wrote: > Here is a code snippet that I wrote for th