Mailing truncated lines

2002-11-16 Thread J. Alejandro Ceballos Z.
I am running -via cron- a program that catch a webpage and send me the result as a mail. It is something like that: use LWP::Simple; $cResult = get('http://www.some.sit/cgi-bin/status.pl?condition=true'); open (MAIL, "/usr/lib/sendmail -s /"test/" [EMAIL PROTECTED]"); print MAIL "To: me <[EMAIL

Running a Perl program countinuously

2002-11-16 Thread Octavian Rasnita
Hi all, I want to make a Perl program that runs permanently without stopping. How can I do this? I could run the program from shell using: nohup perl script.pl & . but if for some unknown reasons the process will be stopped, it won't restart automaticly. How can I make it to start automati

HTML, XHTML, XML, etc

2002-11-16 Thread Octavian Rasnita
Hi all, I've seen more modules like HTML::... and others that understand the structure of an HTML document. If I want to create a web spider that parses more web pages, how can I parse them if they are in diverse formats? Some of them might be using the HTML old format, others the XHTML, ... and

Javascript module?

2002-11-16 Thread Octavian Rasnita
Hi all, Are there any modules that support Javascript? I want to parse a web page and to find where Javascript code links to other pages, etc. For example, the code: <.a href="http://www.netscape.com/ onClick="window.location='http://www.crack.tk';"> This code will use Javascript first, so thi

Re: HTML, XHTML, XML, etc

2002-11-16 Thread Wiggins d'Anconia
Theoretically because XHTML is really just a subset of XML any XML parser *should* be able to parse XHTML with no problem. HTML gets a little more complicated as it does not have to be properly formed. I am not sure if there is a module that will handle all types, the easy way I would think to

Re: Running a Perl program countinuously

2002-11-16 Thread Wiggins d'Anconia
Restarting automatically I would think wouldn't be possible without some outside source checking for whether it is running (for instance crond like you mention). Generally with a daemon process you would right a lock file or pid file, then have cron check for the pid file, read the pid out of

Problems

2002-11-16 Thread Ambrose007
I have an account on a apache server running mod perl, but i am unable to get even the simplest of scripts to run i am will to have some one log on to the account to see if they can help me with this the error i keep getting is that the header has ended prematurelyno clue what is going on al

Re: Running a Perl program countinuously

2002-11-16 Thread Randal L. Schwartz
> "Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: Octavian> How can I make it to start automaticly after stopping? while true do perl-command-goes-here done & But why are you asking this in a CGI list? This has nothing to do with CGI. -- Randal L. Schwartz - Stonehenge Consulti

Re: Javascript module?

2002-11-16 Thread Niko Gunadi
On Sun, Nov 17, 2002 at 06:21:08AM +0200, Octavian Rasnita wrote: >For example, the code: > ><.a href="http://www.netscape.com/ >onClick="window.location='http://www.crack.tk';"> > >This code will use Javascript first, so this is the real link, so I need to >find it. > >Is there a module that can d

Re: HTML, XHTML, XML, etc

2002-11-16 Thread Jimmy George
Hello All This is not really CGI talk but I am interested in the statement that XHTML is a subset od XML and a parser should be available in the CGI library. To my mind XHTML is a cleaner version of HTML in that any opening tag has to have a closing tag. e.g. a tag has to have a tag to close th