real beginners stuff

2002-08-13 Thread Jimmy George
Hello World If I logon to the web via (say) server_a and then start this script in server_b which has the code in its cgi-bin folder #! /usr/bin/perl -w # use CGI qw(:standard); #use strict; # print END_of_file; Content-type: text/html html headtitleServer Environment/title/head body h2This

Protected WEB pages in Perl

2002-08-13 Thread Alex Agerholm
Hi everyone I am new to writing CGI code in Perl and I am going to make some protected WEB pages using Perl. Can anyone direct me to some sample code for making a simple login system and some protected WEB pages ? Thanks in advance Regards Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: new lines

2002-08-13 Thread Felix Geerinckx
on Tue, 13 Aug 2002 08:19:39 GMT, [EMAIL PROTECTED] (Jimmy George) wrote: This script is from a text book [code snipped] but how do we put \n's into it for a better display on the screen?? All \n are ignored by you webbrowser (unless they are between a pre /pre pair of tags). If you want

Re: real beginners stuff

2002-08-13 Thread Connie Chan
Don't have exact idea, but see inline comments : #! /usr/bin/perl -w Try #!/usr ... you've added a space there. use CGI::Carp qw(fatalsToBrowser); # try add this line [...] should I get to see the %ENV details of server_a? Not, but you might check your error.log so you'll get a better

Re: Creating a shopping cart

2002-08-13 Thread zentara
On Mon, 12 Aug 2002 21:25:18 +0300, [EMAIL PROTECTED] (Octavian Rasnita) wrote: Thank you but I want to learn that. I want to learn how to work with a commerce partner, how should I write the shopping cart to be able to communicate with them, etc. Most of these online verification systems

REMOVE ME from your mailing list!

2002-08-13 Thread Buskirk, Richard Mr USAREC
i have done everything but beg and i dont want to recieve this again! Alternate Email account [EMAIL PROTECTED] [EMAIL PROTECTED] Richard L. Buskirk Software Developer/Web Developer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: REMOVE ME from your mailing list!

2002-08-13 Thread John Pitchko
Did you read where it says, To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]??? Or try mailing the admin? John Pitchko Data Services Saskatchewan Government Insurance Buskirk, Richard Mr USAREC [EMAIL PROTECTED] 08/13/02 07:14am i have done

RE: real beginners stuff

2002-08-13 Thread Scot Robnett
Try printing the content type before your HERE doc, not within it. Scot R. inSite -Original Message- From: Jimmy George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:03 AM To: cgi Subject: real beginners stuff Hello World If I logon to the web via (say) server_a and

Re: Protected WEB pages in Perl

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 12:32 , Alex Agerholm wrote: Hi everyone I am new to writing CGI code in Perl and I am going to make some protected WEB pages using Perl. Can anyone direct me to some sample code for making a simple login system and some protected WEB pages ? do you mean

RE: real beginners stuff

2002-08-13 Thread Bob Showalter
-Original Message- From: Jimmy George [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:03 AM To: cgi Subject: real beginners stuff Hello World If I logon to the web via (say) server_a and then start this script in server_b which has the code in its cgi-bin

Re: How does ZOMBIE/defunct affect the system?

2002-08-13 Thread drieux
On Tuesday, August 13, 2002, at 05:47 , Kipp, James wrote: [..] sub start_d { umask 0; open (STDIN, /dev/null) or die Can't read /dev/null: $!; open (STDOUT, /dev/null) or die Can't write to /dev/null: $! ; open (STDERR, STDOUT) or die Can't write to

Re: real beginners stuff

2002-08-13 Thread perl-dvd
Jimmy, Sorry I had not read this post before I replied to the other. You need the permissions on a folder to be readable and executable in order for people to read what is in that folder period (not just execute scripts). So your folder needs to be permissions 755. Your script must be

Re: Protected WEB pages in Perl

2002-08-13 Thread md
--- Alex Agerholm [EMAIL PROTECTED] wrote: Hi everyone I am new to writing CGI code in Perl and I am going to make some protected WEB pages using Perl. Can anyone direct me to some sample code for making a simple login system and some protected WEB pages ? You can use Apache Basic

Re: REMOVE ME from your mailing list!

2002-08-13 Thread David T-G
Mr. Buskirk -- ...and then Buskirk, Richard Mr USAREC said... % % i have done everything but beg and i dont want to recieve this again! I am sorry to hear of your difficulties unsubscribing. Subscribing to and unsubscribing from mailing lists are extremely delicate technical procedures and

RE: REMOVE ME from your mailing list!

2002-08-13 Thread Troy May
LOL This cracked me up! :) -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:51 PM To: perl beginners cgi Cc: Buskirk, Richard Mr USAREC Subject: Re: REMOVE ME from your mailing list! Mr. Buskirk -- and then Buskirk, Richard Mr

Re: REMOVE ME from your mailing list!

2002-08-13 Thread David T-G
Troy, et al -- ...and then Troy May said... % % LOL This cracked me up! :) Happy to be of service :-) Thanks HAND :-D -- David T-G * It's easier to fight for one's principles (play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie (work) [EMAIL

Cache problem in IE

2002-08-13 Thread Niko Gunadi
Hi, I developed an online polling system where ppl can vote online. This voting is done in a computer room where people come down and vote. The problem is the caching problem that happen in IE. For example, I vote in a certain computer then i log off. The next person who uses the computer can

new lines and stupidity

2002-08-13 Thread Jimmy George
Hello World David pointed out that the \n is not applicable in the context I was in and that the html br was. Of course! Only silly tired people like me do dumb things like that after having been using them in text definitions for the previous hour or more. Sorry about that. cheers Jimmy

server_a and server_b description

2002-08-13 Thread Jimmy George
Thank you all and here is a better description. When I logon to the web I am going through an ISP that (obviously) allows logons. So I enter the web with a user name through that ISP. My home site - the cabonnecreations - is on another server that does not have login capability. So my work

Re: Cache problem in IE

2002-08-13 Thread Wiggins d'Anconia
Might be other ways to thwart this, but we would need more info about how you are doing things, aka POST or GET, setting cookies, etc. If you want to rid yourself of both the back button problem and session only cookies, you could always have your return page use a little javascript and call

Re: server_a and server_b description

2002-08-13 Thread Wiggins d'Anconia
Jimmy George wrote: snip An earlier email of mine did say that this cgi-bin folder in my home site is a 711 protection and does contain a file test1.cgi also at 711 protection that does work. 711 should work as you say since you (the web server's user) are simply executing the script.

Re: server_a and server_b permission update

2002-08-13 Thread Jimmy George
Hello Wiggins and World As a check I did put the cgi-bin folder onto 755. That allowed me to read the contents of the folder and did allow me to run the errant environ1.cgi file. the error log is available and errors can look like this = 203.220.157.51 - - [07/Aug/2002:18:21:08 +1000] POST

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

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: 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) { $count++ }

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: 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 direction,

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:

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 only

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();

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

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 (what i

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 may

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 are you

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

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 parent

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 dead };

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: 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::Daemon, what

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: 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

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

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

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

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 MMDDYYHHmm

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 my $month =

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 later

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'; my

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

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 html

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

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: 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 regex should

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: 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

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

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's not possible to use

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 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, I

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 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: cf:

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 ... html head

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

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 a PC

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

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,/path/to/logfile);#Opens main log file

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

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

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

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 a

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 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 best

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: 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 != LDAP_SUCCESS) {

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: 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

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

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 am out of

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 when

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 only

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 to

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.

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

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:

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 there

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.

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: 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

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 the

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: 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 floor, but

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: 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::Harness is

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 accomplish is

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

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: 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 the forked processes

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 commands,

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 $kid == -1; Does the