Re: Help with IO::Socket::INET

2002-08-13 Thread Felix Geerinckx
on Wed, 14 Aug 2002 02:32:30 GMT, [EMAIL PROTECTED] (Tim Musson) wrote: > Ok, can you point me to an example? I have never used that module > before, and it has been probably 4 years since I have done something > like this. From a browser what would happen is > 1. hit the router/switch > 2. res

Re: system command to perl variable

2002-08-13 Thread Sudarshan Raghavan
On Wed, 14 Aug 2002, Jose Malacara wrote: > Hello. I was wondering if there is a way to capture a system command into a > perl variable. I know this is incorrect, but I basically want to do something > like this: > > $date = system("date"); > print "Today is $date."; You can use backticks ins

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, Ahmed Moustafa wrote: > Ahmed Moustafa wrote: > > Drieux wrote: > > > >> > >> > >>use POSIX ":sys_wait_h"; > >>#... > >>do { > >>$kid = waitpid(-1,&WNOHANG); > >>} until $

system command to perl variable

2002-08-13 Thread Jose Malacara
Hello. I was wondering if there is a way to capture a system command into a perl variable. I know this is incorrect, but I basically want to do something like this: $date = system("date"); print "Today is $date."; Thanks, Jose -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
Ahmed Moustafa wrote: > Drieux wrote: > >> >> >>use POSIX ":sys_wait_h"; >>#... >>do { >>$kid = waitpid(-1,&WNOHANG); >>} until $kid == -1; > > > Does the execution of the program wait to all

WAIT server missing?

2002-08-13 Thread Tom Allison
ls6.informatik.uni-dortmund.de:1404 No response from server Does WAIT have any mirros/alternatives? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help with IO::Socket::INET

2002-08-13 Thread Tim Musson
Hey George, Ok, can you point me to an example? I have never used that module before, and it has been probably 4 years since I have done something like this. From a browser what would happen is 1. hit the router/switch 2. respond to the userid/pw challenge 3. go to a new page I would

Re: Help with IO::Socket::INET

2002-08-13 Thread George Schlossnagle
Why not use LWP::UserAgent? On Tuesday, August 13, 2002, at 10:08 PM, Tim Musson wrote: > Hey perlers, > > I have this bit of cgi code that is not working any more (I am sure it > did at one time, but I must have modified it wrong) and I need to > resurrect it. > > What I am trying to accomplis

Help with IO::Socket::INET

2002-08-13 Thread Tim Musson
Hey perlers, I have this bit of cgi code that is not working any more (I am sure it did at one time, but I must have modified it wrong) and I need to resurrect it. What I am trying to accomplish is to check the Wan address of a NetGear broadband router. The method I am trying to use is to telne

Re: Test::More module missing?

2002-08-13 Thread Tom Allison
Tom Allison wrote: > I'm trying to install CPAN and I keep getting an error (or two) > > Test::More -- I can't find it anywhere > Test::Harness -- this is incorrectly named under Test::MSCHWERN > > Where is this stuff? > > Found it, but CPAN installation is wrong or something... Test::Harnes

Test::More module missing?

2002-08-13 Thread Tom Allison
I'm trying to install CPAN and I keep getting an error (or two) Test::More -- I can't find it anywhere Test::Harness -- this is incorrectly named under Test::MSCHWERN Where is this stuff? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to control @INC AND keep -T option

2002-08-13 Thread David T-G
Anshul -- ...and then Anshul Chhabra said... % % Hi Hello! % IF I attempt to pass the include files through PERL5LIB or PERLLIB, and % if perl is started with the -T option on, then it ignores the libraries % specified through the PERL5LIB / PERLLIB. Really? I didn't know that... Time

Re: system() retuens -1

2002-08-13 Thread Michael Fowler
On Tue, Aug 13, 2002 at 03:41:17PM -0700, Ahmed Moustafa wrote: > I call external programs with system(). It used to return the correct > value i.e. zero if there is no error and a non-zero value otherwise. > Recently, it always returns -1 even if the external programs work fine. > What could be t

RE: Perl from command line documentation

2002-08-13 Thread Mark Anderson
perldoc perlrun -Original Message- From: Mario [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 5:09 PM To: [EMAIL PROTECTED] Subject: Perl from command line documentation Hi all! I'm triying to replace my awk habits with perl, but I wonder if there is any place where I can f

Perl from command line documentation

2002-08-13 Thread Mario
Hi all! I'm triying to replace my awk habits with perl, but I wonder if there is any place where I can find samples and/or documentation about how to run perl from the command line. Normally I work in Unix. For example with awk I used to get a column from the ps or ls -l command. Any comment

Re: News from Prague

2002-08-13 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: > Just for your > information, I and > my relatives are > safe and dry and > we all are high > enough to stay > that way. *Good to know his dealer has a boat* ;-). I will > stay offline > today and maybe > tomorrow, Our > office is on > second flo

How to control @INC AND keep -T option

2002-08-13 Thread Anshul Chhabra
Hi IF I attempt to pass the include files through PERL5LIB or PERLLIB, and if perl is started with the -T option on, then it ignores the libraries specified through the PERL5LIB / PERLLIB. What is a good way of including files while starting perl other than PERL5LIB and PERLLIB.

Re: timing delays

2002-08-13 Thread John W. Krahn
Joe Mecklin wrote: > > I'm trying to send a file as a remote configuration download via telnet > in a Perl script (using net::telnet). I need to introduce sub-second > delays between sending each line so the receiving system doesn't get > confused. Sleep only goes down to a single second; is th

system() retuens -1

2002-08-13 Thread Ahmed Moustafa
I call external programs with system(). It used to return the correct value i.e. zero if there is no error and a non-zero value otherwise. Recently, it always returns -1 even if the external programs work fine. What could be the reason? Thanks in advance, Ahmed -- To unsubscribe, e-mail: [EMA

Re: Desperately Seeking Notes ProgID

2002-08-13 Thread chris
You do not specify the version of Notes you are using but ... Start with the IBM Redbook on Domino Object Model http://www.redbooks.ibm.com/pubs/pdfs/redbooks/sg245670.pdf Get sample perl script to fetch document id from a Notes database here http://www.perlmonks.com/index.pl?node_id=9769 Use a

Re: OLE Send, need syntax help.

2002-08-13 Thread Chris Benco
Works great now. Thanks Note: $Document->Send(1); # The mail file sent is almost 200k. Probably saving blank space somewhere. $Document->Send(0); # Is nice and small. Chris Benco Chris, You miss a line "$Document->{'Form'} = 'Memo';" ,and setup the parameter is a string. Jef

RE: timing delays

2002-08-13 Thread Bob Showalter
> -Original Message- > From: Joe Mecklin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 3:20 PM > To: [EMAIL PROTECTED] > Subject: timing delays > > > I'm trying to send a file as a remote configuration download > via telnet > in a Perl script (using net::telnet). I need t

Re: timing delays

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 12:20 , Joe Mecklin wrote: > I'm trying to send a file as a remote configuration download via telnet > in a Perl script (using net::telnet). I need to introduce sub-second > delays between sending each line so the receiving system doesn't get > confused. Sleep o

Re: lwp installation

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 10:10 , Balint, Jess wrote: > Hello all. I was running the testsuite on the lwp and I encountered the > following error: > > NDBM_File.so: undefined symbol: dbm_open > > This is a perl-5.6.1 installation on linux. Is it possible there was a > compile error

code crisis du jure

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 11:26 , Kipp, James wrote: [..] >> in the daemon 102 class >> >> gee, this just needs to be a dumb pig that just gets >> launched and does some stuff > > funny you should mentioned this. as i told you this dumb pig is making me > nervous and seeing that i

Re: OLE Send, need syntax help.

2002-08-13 Thread JEFERSON_LADEIA
Chris, You miss a line "$Document->{'Form'} = 'Memo';" ,and setup the parameter is a string. Jeferson Ladeia my $userid = "XXX"; my $server = "/"; my $Notes = Win32::OLE->new('Notes.NotesSession')or die "Cannot start Lotus Notes Session object.\n"; my $Database = $Notes->Get

timing delays

2002-08-13 Thread Joe Mecklin
I'm trying to send a file as a remote configuration download via telnet in a Perl script (using net::telnet). I need to introduce sub-second delays between sending each line so the receiving system doesn't get confused. Sleep only goes down to a single second; is there something that can inject

RE: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Kipp, James
Ahmed Did you look at the code that Chas posted from the pm file. It pretty much has all you need to make your own deamon. Combine that with Drieux's start|Kill .. stuff (http://www.wetware.com/drieux/pbl/Sys/daemon1.txt). > -Original Message- > From: Ahmed Moustafa [mailto:[EMAIL PROTE

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
> Proc::Daemon is a pure Perl module, so it is a perfect Perl example of > how to create a daemon in Unix. Is there a particular reason you cannot > use Proc::Daemon (uncooperative sysadmins)? Exactly, also, I already have something in place and I need to fix it. -- To unsubscribe, e-mail: [

OLE Send, need syntax help.

2002-08-13 Thread Chris Benco
So far so good, script will create the document, populate the fields, and save it. Problem, is it then just sits in my drafts folder and I can not get it to send directly form the script. use strict; use warnings; use diagnostics; use Win32::OLE; my $userid = "XX"; my $server = "/xx"; my

Re: ParseExcel output to web page

2002-08-13 Thread Luca Leonardi
"Maruf Cetin" <[EMAIL PROTECTED]> wrote in message 002e01c242dd$879cc8c0$2f00a8c0@SERVER">news:002e01c242dd$879cc8c0$2f00a8c0@SERVER... > Perlscript... > It is client-side or server-side? Sorry: client-side. I must admit I haven't thought about making it server-side ... -- To unsubscribe,

Re: Display/Increament Problem

2002-08-13 Thread Jeff 'japhy' Pinyan
On Aug 13, Darryl Schnell said: >sub ldap_srch { > my $limit = "20"; > my $emailname = shift; > $ldap_con = new Net::LDAPapi($host); > if ($ldap_con == -1) { die "Unable to Open LDAP Connection to $host"; >} > $status = $ldap_con->bind_s("cn=Directory Manager", $passwd); > if ($status != LD

lwp installation

2002-08-13 Thread Balint, Jess
Hello all. I was running the testsuite on the lwp and I encountered the following error: NDBM_File.so: undefined symbol: dbm_open This is a perl-5.6.1 installation on linux. Is it possible there was a compile error when I installed perl? Or is there some fix for this? Thanks. Jess --

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 09:01 , Kipp, James wrote: [..] > methinks we covered this ground before. will implement the start, stop > like > an rc script, but i don't need to deal with a config file in this case. > Thanks I think that you and I have gone around that mark, but thought it be

AW: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Hughes, James
try the command sleep for 5 min it would be sleep 300; (300 seconds) James Hughes DREGIS Dresdner Global IT-Services Gesellschaft mbH Bankbetrieb Server u. Geschäftsstellenservices (SH GM) Telephone +49 (0) 69 / 2 63 - 82653

Re: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread sl003b0462
sleep (seconds); - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 13, 2002 5:40 PM Subject: How do you put a delay/pause/wait in Perl? I've searched online, but it's difficult when I have no idea what the command is. I want to have a scrip

Re: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Morten Liebach
On 2002-08-13 12:40:32 -0400, [EMAIL PROTECTED] wrote: > I've searched online, but it's difficult when I have no idea what the > command is. > > I want to have a script execute, but if a condition is not met, for it to > wait five minutes and try again. I would prefer to do this without using

RE: How do you put a delay/pause/wait in Perl?

2002-08-13 Thread Sylvanie, Jean-Pierre
this could help : perldoc -f sleep jp. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: How do you put a delay/pause/wait in Perl? I've searched online, but it's difficult when I have no idea

How do you put a delay/pause/wait in Perl?

2002-08-13 Thread [EMAIL PROTECTED]
I've searched online, but it's difficult when I have no idea what the command is. I want to have a script execute, but if a condition is not met, for it to wait five minutes and try again. I would prefer to do this without using a 'while' loop, because I don't know what that would do to the sy

Display/Increament Problem

2002-08-13 Thread Darryl Schnell
Below you will find an ldapsearch subroutine that I am trying to perform. The problem I cannot figure out is the last print statement: print LOG "DEBUG:$table{gecos}[$cnt]:$table{uid}[$cnt]\n"; It's suppose to print out data like below: Testus1:000111 Testus2:000112 Testus3:000113 Etc. However

AW: regular expression

2002-08-13 Thread Hughes, James
Hi there, I am also just starting out in perl, but I would use the split funtion. It takes the variable a part at desired points just like awk. example: #!/usr/bin/perl # open (FH,") { #Reads log file to $_

Fw: Creating the first GUI for Windows in Perl using Tk

2002-08-13 Thread pat
I have installed both perl and Tk with RH7.1 and I also get the same error messages as were posted here before. I have checked the man pages and searched for the elusive Tk.pm file. Please can someone put me on the right track? Pat

Ynt: ParseExcel output to web page

2002-08-13 Thread Maruf Cetin
What? Perlscript... It is client-side or server-side? Maruf From: Luca Leonardi <[EMAIL PROTECTED]> > I'm trying to test the ParseExcel module but with mixed fortunes. If I run > it from the command line it works fine, but if I add it to the HTML code the > result is a blank page. Machine is

RE: How could this happen?

2002-08-13 Thread Chas Owens
On Tue, 2002-08-13 at 10:56, Kirby_Sarah wrote: > Wel, actually, I just copied my perl directory from a file server > instead of installing it, so I don't have any of the modules, just the > compiler. I get error messages when I use strict and warnings about @INC. > I need to sit down and ins

ParseExcel output to web page

2002-08-13 Thread Luca Leonardi
I'm trying to test the ParseExcel module but with mixed fortunes. If I run it from the command line it works fine, but if I add it to the HTML code the result is a blank page. Machine is a PC running II 5.0 on Windows 2000 and the latest version of ActivePerl 5.6. Code follows ... Test of Perl

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 07:33 , Kipp, James wrote: [..] >> a couple of basic concerns. >> >> a) your redirect of STDERR, STDOUT >> means that you will be losing all of your [..] > Hopefully there won't be any :-). Your right, i was aiming to change that. as we say -

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Chas Owens
On Tue, 2002-08-13 at 10:17, Ahmed Moustafa wrote: > Drieux wrote: > > > > On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > > > >> Drieux wrote: > >> > >>> what you want is > >>> how do I create a demon process > >>> that will be able to run independent of my programme: > >>> c

perl2exe

2002-08-13 Thread Scott Barnett
Hi, I am try to create a .exe with perl2exe on a Win32 platform and keep getting the BSOD or freeze ups. I been to indigostar's site to try to dig up a troubleshooting page, but no luck. Has anyone else had problems with perl2exe. Thanks, Scott Barnett Home Care Medical - Technical Support Sp

RE: How could this happen?

2002-08-13 Thread Kirby_Sarah
Wel, actually, I just copied my perl directory from a file server instead of installing it, so I don't have any of the modules, just the compiler. I get error messages when I use strict and warnings about @INC. I need to sit down and install it correctly... next week, I think. -Sarah (okay,

RE: How could this happen?

2002-08-13 Thread Chas Owens
On Tue, 2002-08-13 at 10:26, Kirby_Sarah wrote: > That would work if I was writing a script using a plan. However what I do > right now is just add one function at a time, going back to improve sections > of code whenever I figure out a better way of doing things. It's a terrible > way to code,

RE: How could this happen?

2002-08-13 Thread Kirby_Sarah
That would work if I was writing a script using a plan. However what I do right now is just add one function at a time, going back to improve sections of code whenever I figure out a better way of doing things. It's a terrible way to code, I know, but I never seem to be able to wait long enough

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Ahmed Moustafa
Drieux wrote: > > On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > >> Drieux wrote: >> >>> what you want is >>> how do I create a demon process >>> that will be able to run independent of my programme: >>> cf: >>> http://www.wetware.com/drieux/pbl/Sys/daemon1.txt >> >> >> If it

RE: How could this happen?

2002-08-13 Thread Chas Owens
Whereas there is nothing you can do about being brainfried, there are things you can do to help minimize mistakes like this one. The first is to always attach the line number and filename (and possibly process id) to any debug messages (or for that matter any log messages) you send. You can do t

Re: Desperately Seeking Notes ProgID

2002-08-13 Thread Chris Benco
Thanks, I finally found what I was looking for at 2 places at the same time. Here and on www.perlmonks.com Great site, wish I had found it a month ago. For some reason i had a hell of a time finding out that the ProgID for notes was just "Notes.NotesSession". Thanks for the help. Chris Be

Re: regular expression

2002-08-13 Thread Jeff 'japhy' Pinyan
On Aug 12, John W. Krahn said: >cat {thisfile} | perl -F'/' -ane'print $F[2]' Useless use of 'cat', and you're missing a newline (which I assume you'd want). perl -F/ -lane 'print $F[2]' FILES... or perl -F/ -pale '$_ = $F[2]' FILES... -- Jeff "japhy" Pinyan [EMAIL PROTECTED]

Re: regular expression

2002-08-13 Thread Jeff 'japhy' Pinyan
On Aug 13, Janek Schleicher said: >Laddo wrote at Tue, 13 Aug 2002 06:31:24 +0200: > >> var/backup/usersA2F.0.1_1027468994_24 >> >> i want a regular expression that can find only the third part i.e only >> usersA2F.0.1_1027468994_24 > >Of course, you can also use a regexp: >m:/(.*?)$/ That rege

Re: new lines

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 01:19 , Jimmy George wrote: [..] > # > print $q->header("text/html"), > $q->start_html("Environment check"), > $q->server_name, > $q->server_port, >

Re: shopping cart

2002-08-13 Thread zentara
On Mon, 12 Aug 2002 16:10:59 -0500, [EMAIL PROTECTED] (Mariusz) wrote: >hi everyone. I'm putting a simple shopping cart together that emails order on the >checkout. Below is the logic of how it works and I was wondering if something could >be simplified (especially the number of pre existing co

Re: new window

2002-08-13 Thread zentara
On Mon, 12 Aug 2002 19:02:30 -0500, [EMAIL PROTECTED] (Mariusz) wrote: >When I submit any form that points to a certain cgi script a new page gets loaded: >www.domain.com/cgi-bin/myscript.cgi >Is it possible to execute the script and do not have the next page loading? If you put a form on an htm

Re: Check files in mailbox folder - reply to sender

2002-08-13 Thread zentara
On 12 Aug 2002 18:54:27 +0200, [EMAIL PROTECTED] (Petre Agenbag) wrote: > checks through the files in the particular mailbox, grabs the >From: address, and mails back with an appropriate message. Sure, you >will have to keep track of which messages was handled already, but that >can't be too diff

RE: Formatting date, time

2002-08-13 Thread Bob Showalter
> -Original Message- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 9:33 AM > To: 'Gregg O'Donnell'; [EMAIL PROTECTED] > Subject: RE: Formatting date, time > > ... > or, 2) Use the POSIX module's strftime(), which is simpler: > >use POSIX 'strftime'

RE: Formatting date, time

2002-08-13 Thread Bob Showalter
> -Original Message- > From: Gregg O'Donnell [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 13, 2002 9:14 AM > To: [EMAIL PROTECTED] > Subject: Formatting date, time > > I'm looking for the simplest way to use the date and time in > the format of MMDDYYHHmm (no spaces), which is used

Re: Formatting date, time

2002-08-13 Thread Robin Norwood
"Gregg O'Donnell" <[EMAIL PROTECTED]> writes: > > > I'm looking for the simplest way to use the date and time in the format of >MMDDYYHHmm (no spaces), which is used later in the program. > > Here's what I've come up with; comments or suggestions are appreciated. > > #Insert Date and Time >

Re: Formatting date, time

2002-08-13 Thread Tor Hildrum
<[EMAIL PROTECTED]> wrote: > #Insert Date and Time > my $month = $mon00 #Two digit month > my $day = $mday00 #Two digit day in month > my $year = $year#Two digit year ?? > my $hour = $hour00 #Two digit: Hour > my $min = $min00 #Two digit: Minutes > #Combine date and time above into MMD

Re: Desperately Seeking Notes ProgID

2002-08-13 Thread JEFERSON_LADEIA
Chris, I believe that only exist one method to access Lotus Notes thru Perl. This method is OLE. The text above show this: Lotus Notes can be accessed through OLE, for example like this: use strict; use Win32::OLE; my $Notes = Win32::OLE->new('Notes.NotesSession') or die "Cannot

Formatting date, time

2002-08-13 Thread Gregg O'Donnell
I'm looking for the simplest way to use the date and time in the format of MMDDYYHHmm (no spaces), which is used later in the program. Here's what I've come up with; comments or suggestions are appreciated. #Insert Date and Time my $month = $mon00 #Two digit month my $day = $mday00 #Two

Desperately Seeking Notes ProgID

2002-08-13 Thread Chris Benco
Checked Notes.net and a few other places, doesn't seem anyone using notes has ever even heard of Perl Is there some trick to finding ProgID's on a win32 system? some way to extract them from a process or some place to look them up? Perl Doc's has a VERY extensive list of control objects but

RE: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread Kipp, James
> > If it's not possible to use Proc::Daemon, what would be the other > options, please? > > Your help will appreciated so much. > I also had to roll my own daemon. actually i would like to here suggestions from drieux or anyone on how i can improve this. Proc::Daemon is not an option for me

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Monday, August 12, 2002, at 11:31 , Ahmed Moustafa wrote: > Drieux wrote: >> what you want is >> how do I create a demon process >> that will be able to run independent of my programme: >> cf: >> http://www.wetware.com/drieux/pbl/Sys/daemon1.txt > > If it's not possible to use Proc::Daemo

News from Prague

2002-08-13 Thread Jenda
Just for your information, I and my relatives are safe and dry and we all are high enough to stay that way. I will stay offline today and maybe tomorrow, Our office is on second floor, but the power is or soon will be off, the transport is flaky and most probably the street will

RE: RegEx question

2002-08-13 Thread Kipp, James
rindex() should work or substr() using a negative number as the offset > -Original Message- > From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 12, 2002 4:32 PM > To: begin begin > Subject: RegEx question > > > All, > > Have a quick regex question here ;) >

Re: Idea about childs...

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, Sudarshan Raghavan wrote: > > Case 2) Parent dies and child still alive > From the parent you can send a signal to the child > and handle it in the child. Something like > Parent process > kill ('USR1', $child_pid); > Child process > $SIG{USR1} = sub { die "Parent process is

Re: Idea about childs...

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, Angerstein wrote: > I have a child and a parent process. > Both should die if the other has ended. > perldoc perlipc Case 1) Child dies and parent still alive In this case the signal SIGCHLD is sent to the parent. You can set up a handler to SIGCHLD like this in your paren

RE: Quick regexp help!

2002-08-13 Thread David Samuelsson (PAC)
Thanks for all help (all methods worked!) and yes i have read perlre, i have found some other docs that have done a better job at describing regexps, i found one at devshed.com that was really good..but if you know any other docs lying out there ill be glad to read em :-) //Dave -Origina

Re: 32 and 64 bits

2002-08-13 Thread John W. Krahn
Vincent Bufferne wrote: > > I want to write something like: > > if (64 bits platform) > . > else > . > > Where the code has a different behaviour depending on the targeted platform > (32 or 64 bits). > Do you know a simple method to perform this test in Perl ? What different behaviour

Re: Quick regexp help!

2002-08-13 Thread John W. Krahn
David Samuelsson wrote: > > how do i only get the first part from this? > > RTFRT_flu@23460@\GE_Machine <- replica:GE_Machine_KI@\GE_Machine > > i get this value in $_, now i want to remove anything that is > after <- including the arrow (what i want is: RTFRT_flu@23460@\GE_Machine) > The arrow

Re: Quick regexp help!

2002-08-13 Thread Felix Geerinckx
on Tue, 13 Aug 2002 09:01:22 GMT, [EMAIL PROTECTED] (David Samuelsson) wrote: > how do i only get the first part from this? > > RTFRT_flu@23460@\GE_Machine <- replica:GE_Machine_KI@\GE_Machine > > i get this value in $_, now i want to remove anything that is > after <- including the arrow (wha

32 and 64 bits

2002-08-13 Thread BUFFERNE,VINCENT (Non-HP-France,ex1)
I want to write something like: if (64 bits platform) . else . Where the code has a different behaviour depending on the targeted platform (32 or 64 bits). Do you know a simple method to perform this test in Perl ? Thanks, Vincent -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Idea about childs...

2002-08-13 Thread Angerstein
I have a child and a parent process. Both should die if the other has ended. i tried with kill(0,$pib); while (kill(0,$pib)){ } in the parentprocess and with $parentpid = getppid(); while (kill(0,$parentpid)){ } in the child. I also tried: $parentpid = getppid(); wh

Re: Quick regexp help!

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, Connie Chan wrote: > regex method : > $_ =~ s/^(.+)<\-(.+)$/$1/; 1) By default the regex engine tries to match the contents of $_, so your statement can be written as s/^(.+)<\-(.+)$/$1/; 2) You don't have to escape '-' in this case, it assumes a special meaning o

Re: Quick regexp help!

2002-08-13 Thread Sudarshan Raghavan
On Tue, 13 Aug 2002, David Samuelsson (PAC) wrote: > how do i only get the first part from this? > > RTFRT_flu@23460@\GE_Machine <- replica:GE_Machine_KI@\GE_Machine > > i get this value in $_, now i want to remove anything that is after <- including the >arrow (what i want is: RTFRT_flu@23460

Re: Quick regexp help!

2002-08-13 Thread Connie Chan
> how do i only get the first part from this? > > RTFRT_flu@23460@\GE_Machine <- replica:GE_Machine_KI@\GE_Machine > > i get this value in $_, now i want to remove anything that is after <- including the >arrow >>>(what i want is: RTFRT_flu@23460@\GE_Machine) The arrow may point in the other di

Re: maildir help

2002-08-13 Thread Felix Geerinckx
on Mon, 12 Aug 2002 21:35:32 GMT, [EMAIL PROTECTED] (Majid Tahir) wrote: > does anyone know of any perl modules that can be used to retrieve > mail using the Maildir format...i am new at this so any sample > code also would be greatly appreciated A quick search on the CPAN:

RE: deprewhat?

2002-08-13 Thread Richard_Cox
On 13 August 2002 04:44 Janek Schleicher [mailto:[EMAIL PROTECTED]] wrote: > Kirby_sarah wrote at Mon, 12 Aug 2002 23:28:44 +0200: > > line 344: $policyCount = split (/\t/, $violations{$vID}); > > Another way to count the parts is > > my $count = 1; > while ($violations{$vID} =~ /\t/g) { $cou

Quick regexp help!

2002-08-13 Thread David Samuelsson (PAC)
how do i only get the first part from this? RTFRT_flu@23460@\GE_Machine <- replica:GE_Machine_KI@\GE_Machine i get this value in $_, now i want to remove anything that is after <- including the arrow (what i want is: RTFRT_flu@23460@\GE_Machine) The arrow may point in the other direction, and

Re: too new

2002-08-13 Thread Felix Geerinckx
on Mon, 12 Aug 2002 22:37:02 GMT, [EMAIL PROTECTED] (Nicole Jones) wrote: > I am just trying to get perl to install on my server. It's Win2k > with IIS. I've got it installed, but I can't seem to run any > scripts. Can anyone point me to a good resource to figure this > out? You could start