Re: Displaying a user's group memberships

2006-12-22 Thread Dr.Ruud
Chad Perrin schreef: > John W. Krahn: >> Chad Perrin: >>> Chad Perrin: I'm sure that could be made prettier by someone with better Perl mojo than I have at the moment, and it could be made a bit simpler if all you want is the gid for each group rather than the group name. >>> >

Re: KSH and Perl output

2006-12-22 Thread oryann9
Boga Srinivas <[EMAIL PROTECTED]> wrote:oryann9 wrote: > I am trying to get the equivalent in KSH to work in Perl and I cannot seem to > get the same output. I need from /etc/passwd name, uid, gid and gecos for > each passwd files. > > IN KSH: > > for i in `ls /var/tmp/passwd.*` > do > pr

Re: Displaying a user's group memberships

2006-12-22 Thread Dr.Ruud
Chad Perrin schreef: > Ruud: >> So some security layer is not implemented at your end. I don't know >> which is implemented here, there are several ways to do something >> similar. > > At a wild guess, I'd say it might be a chroot "jail". I just asked them, and the shell runs in a (modified) yp (

XML in, XML out

2006-12-22 Thread Beginner
Hi All (and a happy holiday to those that will get a break), I am trying to read in an XML file of addresses. I need to remove all the address data from the file where code =~ /^000/ (there are none in the example data below). I need to reproduce that data 'as is', so I need to honour the tag s

rewrite or reload on YAML

2006-12-22 Thread Wan Chaowei
I will run myapp on mod_perl or FastCGI, but I want to know how to rewrite or reload my YAML file. for example # myapp has this line $hash{SomeKey} = 'SomeValue'; . How can save this value to my YAML file, and how can I reload this value. I don't want restart my web server. Before Catalyst

run script on multiple files

2006-12-22 Thread Kirk Wythers
I have written a short perl script that munges climate data and then loads it into a postgres database. It works fine on one file at a time... syntax is ./program.pl filename I would like to run it in a directory with multiple files. I have tried syntax ./program.pl file1 file2, but only th

Re: run script on multiple files

2006-12-22 Thread Chad Perrin
On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: > I have written a short perl script that munges climate data and then > loads it into a postgres database. It works fine on one file at a > time... syntax is ./program.pl filename > > I would like to run it in a directory with mult

Re: run script on multiple files

2006-12-22 Thread Kirk Wythers
On Dec 22, 2006, at 8:33 PM, Chad Perrin wrote: On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: I have written a short perl script that munges climate data and then loads it into a postgres database. It works fine on one file at a time... syntax is ./program.pl filename I would

Re: run script on multiple files

2006-12-22 Thread John W. Krahn
Kirk Wythers wrote: > > On Dec 22, 2006, at 8:33 PM, Chad Perrin wrote: > >> On Fri, Dec 22, 2006 at 08:04:39PM -0600, Kirk Wythers wrote: >>> I have written a short perl script that munges climate data and then >>> loads it into a postgres database. It works fine on one file at a >>> time... syn

Re: glob and "-f" mismatch under Windows

2006-12-22 Thread Ken Foskey
On Thu, 2006-12-21 at 16:45 +, Bryan K. Wright wrote: > Hi folks, > > I'm porting a script to Windows, and I've run into an > odd mismatch between the results returned by "glob" and the > -f operator. If I take a test script like the following: > > my @files = glob ("*.exe"); > for my