Re: problem with Net::FTP and Netgear FVS318 firewall

2002-12-24 Thread Mark Goland
Ok sounds liek your firewall doesnt bind to the 192 address. When connecting to your FTP enter "passive" be4 you do ls and it should work fine. See the http://www.w3.org/Protocols/rfc959/ for more details on FTP modes. If that works then make sure you put the FTP client mode to Firewall mode { pass

Re: Simulating the query string from the command line

2002-12-24 Thread Todd Wade
"R. Joseph Newton" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > Is there any way to feed a query string to a perl script from the command line? I have some scripts that run well under IIS, but not on the Unix server where I will be porsting them when

Re: creating a mysql table with perl

2002-12-24 Thread Todd Wade
"Patricia Hinman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi everyone, > > I know it's Christmas eve, and I should be enjoying > myself, but that's about all that's here tonight, > (myself). > > So I thought I would jump into mysql and learn the > basi

Re: Fw: HTTP Requests

2002-12-24 Thread Randal L. Schwartz
> "R" == R Joseph Newton <[EMAIL PROTECTED]> writes: R> Hi Randal, R> I must take issue with you here. And therefore, you misunderstood my purpose. You have not *seen* the amount of cargo-cult c**p that I've seen in advising people about Perl over 13 years. Maybe it's interesting to know ho

creating a mysql table with perl

2002-12-24 Thread Patricia Hinman
Hi everyone, I know it's Christmas eve, and I should be enjoying myself, but that's about all that's here tonight, (myself). So I thought I would jump into mysql and learn the basics. I've found lot's of info for people who enter data on the command line, but I would like to use a script to cr

Re: Need help converting/sorting date field from within a Perl scrip t

2002-12-24 Thread R. Joseph Newton
Hi Wendy, I'm not sure exactly what you want. Do you get errors when you run the script? I do see one possible cause for an error where you have: $SelectQualifier = (ars_LoadQualifier($ctrl, "$SCHEMA", "('Modified-date' >=(\$TIMESTAMP\$ - 60*60) OR 'Create-date' >= (\$TIMESTAMP \$ - 60*60)) Not

Simulating the query string from the command line

2002-12-24 Thread R. Joseph Newton
Hi, Is there any way to feed a query string to a perl script from the command line? I have some scripts that run well under IIS, but not on the Unix server where I will be porsting them when they go live. I've checked the obvious things-- it has the proper #!/usr/bin/perl-w header, it address

RE: Need help converting/sorting date field from within a Perl sc rip t

2002-12-24 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Do you have a snapshot of what the data looks like, so one can use __DATA__ to process through the data? Unsure what a Remedy form is? I am assuming all the subs are yours which you have created. Wags -Original Message- From: Wendy Stewart [mailto:[EMAIL PROTECTED]] Sent: Tuesd

Re: problem with Net::FTP and Netgear FVS318 firewall

2002-12-24 Thread Foreman
Mark, I can log in from the Windows XP cmd line, but if I try to do an ls I get a 'port command successful' but nothing returned from the ls command. If I ftp directly to my server machine (192.168.0.10) and bypass the firewall as you observed, then when I do an ls, I get a response back from the s

Re: file into memory

2002-12-24 Thread R. Joseph Newton
Hi Bob, See below > > would like to suck the whole file into memory and processing > > each line from > > there. > Bob Showalter wrote: > > I'm not sure what that accomplishes for you, but... Really? In that case, you may be vastly underestimating the cost of I/O on performance. Bear in mi

Need help converting/sorting date field from within a Perl scrip t

2002-12-24 Thread Wendy Stewart
Hi, Help!! I'm a new Perl user and have devloped my first Perl script to extract fields from a Remedy form into a CSV file to be ftp'd elsewhere. I need to sort each record on Modified-date before writing to my output file. The Modified-date format is in absolute time (ie: 12/24/2002 7:17:13 P

Re: problem with Net::FTP and Netgear FVS318 firewall

2002-12-24 Thread Mark Goland
192is a privat address, this never get to the firewall. It seems that your port 21 is totally blocked. Can you login to your ftp server from the prompt ?? try from shell #FTP ftp.lforeman.homeip.net #user pass #passive - Original Message - From: "Foreman" <[EMAIL PROTECTED]> To: <[EM

Re: file into memory

2002-12-24 Thread LRMK
load the file in to the array @lines then run following chomp(@lines); # removes all the new lines foreach $line (@lines){ #process $line } - Original Message - From: "Schwedler Kofoed" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 24, 2002 5:04 AM Subject: f

Re: Resolving DNS/IP

2002-12-24 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Dan) writes: >I need my program to resolve hosts to IP's, and vice versa. I came across >the Net::DNS module on CPAN, but have no idea how to just give it a host, >and get it to return an IP, and vice versa. The help for it doesn't make >sense to

Re: Help with -e switch

2002-12-24 Thread RMD
MERRY CHRISTMAS TO ALL, WITH PEACE AND LOVE. MY BEST WISHES Ricardo Derbes Altec SE AlbarracĂ­n 157 - San Carlos de Bariloche +54-2944-426892 [EMAIL PROTECTED] - Original Message - From: "Paul Johnson" <[EMAIL PROTECTED]> To: "Kieren Diment" <[EMAIL PROTECTED]> Cc: "Perl Beginners" <[EMAI

Re: Help with -e switch

2002-12-24 Thread Paul Johnson
On Tue, Dec 24, 2002 at 08:38:35AM +1100, Kieren Diment wrote: > I'd like to know if it's possible to combine the -i and -e switches. > I have the following script, and I'd like not to have to go to the > bother of firing up an editor, chmod +x ing it and co: > > #!/usr/bin/perl -w > open FILE, $

RE: Readdir

2002-12-24 Thread Paul Kraus
disregard I had a sneaky last statement messing me up. > -Original Message- > From: Paul Kraus [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 24, 2002 9:11 AM > To: 'Perl' > Subject: Readdir > > > Correct me if I am wrong but this should return a directory listing? > > use consta

Resolving DNS/IP

2002-12-24 Thread dan
I need my program to resolve hosts to IP's, and vice versa. I came across the Net::DNS module on CPAN, but have no idea how to just give it a host, and get it to return an IP, and vice versa. The help for it doesn't make sense to me either :( All help much appreciated. Dan -- To unsubscribe,

Readdir

2002-12-24 Thread Paul Kraus
Correct me if I am wrong but this should return a directory listing? use constant backupdir => "/"; opendir BACKUP, BACKUPDIR or die "Cannot open ".BACKUPDIR."!"; print "$_\n" foreach (readdir BACKUP); Paul Kraus Network Administrator PEL Supply Company 216.267.5775 Voice 216-267-6176 Fax www.p

RE: file into memory

2002-12-24 Thread Bob Showalter
> -Original Message- > From: Schwedler Kofoed [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 23, 2002 6:04 PM > To: [EMAIL PROTECTED] > Subject: file into memory > > > Hi all, > > I would like to open a file with the content: > > peter 141444 > oscar e324345 > simon j85547 > > in

RE: Perl Learning Paths

2002-12-24 Thread NYIMI Jose (BMB)
> -Original Message- > From: Paul Kraus [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 24, 2002 2:10 PM > To: 'Mystik Gotan'; Perl > Subject: RE: Perl Learning Paths > > > Helped a lot. I also have the pocket reference and find it an > indispensable tool. Perldoc seems hard to use

RE: which module to use for for process info

2002-12-24 Thread wiggins
You might check into: Proc::ProcessTable http://search.cpan.org/author/DURIST/Proc-ProcessTable-0.38/ProcessTable.pm http://danconia.org On Tue, 24 Dec 2002 18:25:18 +0530, Ramprasad <[EMAIL PROTECTED]> wrote: > Hi, > >I am looking for a mo

RE: Help with -e switch

2002-12-24 Thread wiggins
Should work according to the examples in perldoc perlrun Search for the -i. http://danconia.org On Tue, 24 Dec 2002 08:38:35 +1100, Kieren Diment <[EMAIL PROTECTED]> wrote: > I'd like to know if it's possible to combine the -i and -e switches

RE: Perl Learning Paths

2002-12-24 Thread Paul Kraus
Helped a lot. I also have the pocket reference and find it an indispensable tool. Perldoc seems hard to use because you need to know the function you want to look before hand. Unless I am using it wrong? > -Original Message- > From: Mystik Gotan [mailto:[EMAIL PROTECTED]] > Sent: Tuesday,

which module to use for for process info

2002-12-24 Thread Ramprasad
Hi, I am looking for a module that can help me get process info like process name , process start time etc I am using linux ( redhat 7.2 ) Can someone give me any pointers Thanks all Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Project Management - Maybe off topic

2002-12-24 Thread Mystik Gotan
Oops, it's only for Linux. But it looks good. I'll certainly recommend it for Linux ppl :) -- Bob Erinkveld (Webmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] From: [EMAIL PROTECTED] To: "Paul Kraus" <[EMAIL PROTECTED]>, "'Perl'" <[EMAIL PROTECTED]> Subject: RE:

RE: Project Management - Maybe off topic

2002-12-24 Thread Mystik Gotan
Looks great! I think I'll be giving it a try. I forget things all the time ;) -- Bob Erinkveld (Webmaster Insane Hosts) www.insane-hosts.net MSN: [EMAIL PROTECTED] ## Well it is probably off topic, but a good discussion anyways. Seems like some combination of cvs/rcs+bugzilla

Re: file into memory

2002-12-24 Thread Rob Dixon
Thanks Naryan. This is my old while/for dyslexia playing me up again :-/ I think you're wrong about the interpolation though. while () won't take a control variable and I doubt it will compile in this form. Cheers, Rob "Narayan Kumar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

Re: file into memory

2002-12-24 Thread Rob Dixon
OK, what you've written looks exactly right, which means your problem is somewhere else. We need to see more of your code, and to know why you think it's not working. (Don't forget to close the file after reading it!!) Just one thought: you need to be aware that each of your array elements has the

Re: file into memory

2002-12-24 Thread Narayan Kumar
I am very new to perl. I dont think I get your question. How about using "foreach" instead of "while". foreach ( @xx ) { . } while $file ( @xx ) will actually be interpolated to, $file("peter 141444 \noscar e324345 \nsimon j85547\n"); which is as good as $file(0); and will never work. Nara

Re: Project Management - Maybe off topic

2002-12-24 Thread K. Brian Kelley
You might also try ChameleonLog from LockwoodTech Software. They also makes some nice Microsoft SQL Server software as well. http://www.lockwoodtech.com/ It's try before you buy and the 1 user license is < US$35.00. It may fit your needs if you need something between MS Outlook and Project. -- K

file into memory

2002-12-24 Thread Schwedler Kofoed
Hi all, I would like to open a file with the content: peter 141444 oscar e324345 simon j85547 in a perl script - but instead of reading the file one line at a time I would like to suck the whole file into memory and processing each line from there. I have tried to: open FILE, "< tmp.txt"; @xx

Help with -e switch

2002-12-24 Thread Kieren Diment
I'd like to know if it's possible to combine the -i and -e switches. I have the following script, and I'd like not to have to go to the bother of firing up an editor, chmod +x ing it and co: #!/usr/bin/perl -w open FILE, $ARGV[0]; while () { print if (/(^org_name)|(^email)|(^$)/);

problem with Net::FTP and Netgear FVS318 firewall

2002-12-24 Thread Foreman
Hi. I am able to get to my ftp server through Internet explorer if I set the "Use Passive FTP for compatability..." to true in the Internet Options menu. Otherwise, I can only get to my ftp server using the local IP address. Presumably, using passive mode in ftp (pasv) should get me the same