Re: Don't understand the errors

2009-10-19 Thread John W. Krahn
Harry Putnam wrote: John W. Krahn jwkr...@shaw.ca writes: Harry Putnam wrote: I'm not sure what these errors are telling me. The script is supposed to remove dups from .bash_history Wouldn't it be simpler to set HISTCONTROL to ignoredups: export HISTCONTROL=ignoredups Or: export

Re: Don't understand the errors

2009-10-19 Thread Dermot
2009/10/19 Harry Putnam rea...@newsguy.com: use File::Copy; Dermot commented: It might be best to put this at the top of your script with all the other loadable modules your using. Harry asks: Do you think it would make a difference in how the script behaves? Or do you mean for the sake

Filesize limit for Perl on UNIX

2009-10-19 Thread Taylor, Andrew (ASPIRE)
Hello We have a perl script that (essentially) concatenates a number of files into one. The process is more or less the following Open output file Foreach input file Open each input file write to output file close input file Close output file. The output file has cut off after hitting

Re: Don't understand the errors

2009-10-19 Thread reader
John W. Krahn jwkr...@shaw.ca writes: I'm on a single user machine at home. I'm thinking I could just write to /tmp/BashHistoryDeDup.tmp with the `' flag, overwriting on each run and forget unlinking That could be a security hole. Even though you have a single user machine it is always

RE: Larry's filename fixer

2009-10-19 Thread Bob McConnell
From: Mark Wagner On Wed, Oct 14, 2009 at 15:38, Felix Dorner felix...@web.de wrote: I did the best book purchase in years: The Perl Cookbook. They have an example that seems to come right from Larry Wall himself. And I don't get it. I can use it but I don't understand why it works with

Re: Filesize limit for Perl on UNIX

2009-10-19 Thread Shawn H Corey
Taylor, Andrew (ASPIRE) wrote: Is there a 2GB filesize limit for perl? - we're running on verion 5.6. There is no file limit in Perl. There is no memory limit in Perl. Such limits are because of: * the hardware, * the OS, * the compiler that complied Perl -- Just my 0.0002 million

How to set a proxy server.

2009-10-19 Thread Rob Coops
Dear list, I have the following bit of code: use strict; use warnings; use XML::Compile::WSDL11; use XML::Compile::SOAP11; use XML::Compile::Transport::SOAPHTTP; my $wsdl = XML::Compile::WSDL11-new('checkPort.wsdl'); my $checkVat = $wsdl-compileClient('checkVat'); my %request = ( countryCode =

Re: pcregrep match groups

2009-10-19 Thread Shlomi Fish
Hi Chris! On Friday 16 Oct 2009 22:55:04 Chris Allen wrote: I'm using pcregrep in a pipeline to match some information for a network monitoring system. PCRE is the not-so-Perl-compatible Regular Expression library. It's probably a pretty nice as a way to provide Perl-like (but different)

perl like tail -f

2009-10-19 Thread Harry Putnam
With a linux background I'm used to being able to my the system logger right to a named pipe buy means of a `|' (pipe) symbol in syslog.conf *.* |/var/log/fifo But on Opensolaris the system logger is enough different than the sysklogd daemon on linux that the `|'

Re: perl like tail -f

2009-10-19 Thread Shawn H Corey
Harry Putnam wrote: I'm not sure what it is about the tail -f command that allows it to keep reading over restarts of system logger (on Opensolaris)... but how can I emulate whatever it is.. in perl? Have you looked at File::Tail http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm ? --

Re: perl like tail -f

2009-10-19 Thread Jim Gibson
On 10/19/09 Mon Oct 19, 2009 11:38 AM, Harry Putnam rea...@newsguy.com scribbled: I'm not sure what it is about the tail -f command that allows it to keep reading over restarts of system logger (on Opensolaris)... but how can I emulate whatever it is.. in perl? There is an FAQ:

Re: perl like tail -f

2009-10-19 Thread Harry Putnam
Jim Gibson jimsgib...@gmail.com writes: On 10/19/09 Mon Oct 19, 2009 11:38 AM, Harry Putnam rea...@newsguy.com scribbled: I'm not sure what it is about the tail -f command that allows it to keep reading over restarts of system logger (on Opensolaris)... but how can I emulate whatever