Re: Path of root directory on production server

2001-10-23 Thread RaFaL Pocztarski
tom poe wrote: > #!/usr/bin/perl -w > print "Content-type: text/html\n\n"; > print "Hello World"; > $pwd = `pwd`; > print "The Password is: $pwd\n"; > > The single quotes around pwd on the right side of the = sign, are actually > back-tics. This won't work if the server doesn't chdir to director

Re: Path of root directory on production server

2001-10-23 Thread Stephan Tinnemeyer
Minor bug: tom poe wrote: > > $pwd = `pwd`; > print "The Password is: $pwd\n"; > The Unix command "pwd" has nothing to do with passwords. It stands for "Path to Working Directory". Cheers Stephan -- Dipl.-Chem. Stephan Tinnemeyer Lindenallee 20 24105 Kiel Germany -- To unsubscribe, e-mail

PHP lookalike

2001-10-23 Thread Peter Bosmans
Hoi, I was wondering if it is possible to execute perl-commands, from a html or txt file, from another perl-script. So i can write a generic perl-script which can read some ascii-documents and execute the perl commands that exist in that ascii-document (with a known pre- and postfix) So we can cr

Re: PHP lookalike

2001-10-23 Thread RaFaL Pocztarski
Peter Bosmans wrote: > I was wondering if it is possible to execute perl-commands, from a html > or txt file, from another perl-script. > So i can write a generic perl-script which can read some ascii-documents > and execute the perl commands that exist in that ascii-document (with a > known pre-

Re: PHP lookalike

2001-10-23 Thread Brent Michalski
try HTML::Mason. It kicks ass! http://www.masonhq.com Brent Peter Bosmans cc:

Re: Path of root directory on production server

2001-10-23 Thread RoadRaat
In a message dated Tue, 23 Oct 2001 1:16:49 AM Eastern Daylight Time, tom poe <[EMAIL PROTECTED]> writes: > $pwd = `pwd`; > print "The Password is: $pwd\n"; > Huh? I don't get it. pwd doesn't mean "password". It's "present working directory". And how can you not know the path you need o

Re: Path of root directory on production server

2001-10-23 Thread fliptop
Prashant Kukde wrote: > > Hi , > I want to load my perl/ CGI script on production server. But, I dont know > the root path... > Is there anyway to get it using perl script or CGI script ?? if you're running apache, you can get the document root from the environment variables: print "Document

i need help with Perl and HTML please

2001-10-23 Thread Matthew Mangione
hey im really new to Perl and HTML and so far I've only learned the basics of the Perl language. I have been aquainted with C++ however and the language is coming to me pretty easily. My job on my webteam that we have for our school is to be the one who writes the CGI-scripts. So far i have bas

Re: i need help with Perl and HTML please

2001-10-23 Thread _brian_d_foy
In article <002c01c15be0$ace0cc60$a000330a@watertown>, [EMAIL PROTECTED] (Matthew Mangione) wrote: > hey im really new to Perl and HTML and so far I've only learned the > basics of the Perl language. I have been aquainted with C++ however > and the language is coming to me pretty easily. My jo

Re: Path of root directory on production server

2001-10-23 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Prashant Kukde wrote: > > I want to load my perl/ CGI script on production server. But, I dont know > > the root path... > > Is there anyway to get it using perl script or CGI script ?? > if you're running apache, you can get the doc

Re: Re: i need help with Perl and HTML please

2001-10-23 Thread Mark Bergeron
You have to call the script from the form element: --All of your fields or etc.. here-- or you could trigger it with a link Login In something like that. -Original Message- From: "_brian_d_foy"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Tue Oct 23 10:00:47 PDT 2001 Subject: Re

Obtaining data from a web site via an automated Perl script

2001-10-23 Thread Brian Jackson
Folk, I'm not looking for how to do this, but I am just curious if anyone has either done this or knows if it can be done. We need to capture data from a website that happens to be a text file. Currently we have to manually save the data via the browser, then manually move the txt data and proce

Re: Obtaining data from a web site via an automated Perl script

2001-10-23 Thread Curtis Poe
--- Brian Jackson <[EMAIL PROTECTED]> wrote: > Folk, > > I'm not looking for how to do this, but I am just curious if anyone has > either done this or knows if it can be done. > > We need to capture data from a website that happens to be a text file. > Currently we have to manually save the data

Re: Obtaining data from a web site via an automated Perl script

2001-10-23 Thread _brian_d_foy
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > --- Brian Jackson <[EMAIL PROTECTED]> wrote: > > We need to capture data from a website that happens to be a text file. > > Currently we have to manually save the data via the browser, then > > manually move the txt data and process it.

Net::SSH::Perl

2001-10-23 Thread Chuck
Ok perl gurus, I am using the Net::SSH::Perl module for remote system maintenance. Has anyone figured out a way to change the timeout value for the ssh connection. The only thing I found remotely close to this is the option, ConnectionAttempts, which is the number of tries to make per second, ho

problem callling script from within CGI

2001-10-23 Thread James B. Williams II
Hi all, I'm writing my first CGI script and am baffled why it isn't working. It's a really basic cgi that has the user input form data in a couple places, and these variables are used as arguments for another script that I call after processing the form. The script creates another file, and wor

Re: Form and Hidden values

2001-10-23 Thread Hab Adkins
> I am having a problem with a form I'm trying to use. It has a page > where data is entered, a confirmation page, and from there the ability > to go back and change or submit. The problem is that if a user goes > back to the first page and then back to the confirmation page there are > multiple

parse data file

2001-10-23 Thread Prashant Kukde
Hi, I am trying to parse data in my data file. Every record start with the "1" string and end's with "2".In between the data is separated by delimiter "|" . I want to parse this file and get the record in one variable and do some processing and than move for another record in file. To

Form and Hidden values

2001-10-23 Thread Hab Adkins
I am having a problem with a form I'm trying to use. It has a page where data is entered, a confirmation page, and from there the ability to go back and change or submit. The problem is that if a user goes back to the first page and then back to the confirmation page there are multiple values li

IndigoPearl APACHE?

2001-10-23 Thread pAuLyOYo
Hey~ I download IndigoPearl(APACHE), i figure out how to use it but doesn't work, i did follow the instrucctions, that tell me: add links of your files...(*.pl) to an html page and try! but i try with a simple hello world just for try. #!/usr/bin/perl print "hello world\n" ; doesn't wo

Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread pAuLyOYo
Hey~ I've been trying to made a simple guestbook, i copyed the whole code from "Learning Pearl"(O'Reillys book) i uploaded to tripod and didn't work show me this: .. It looks like there was an error: Your script produced this error: Can't locate CGI.pm in @INC (@INC contains: .) at .

Printing Hash Keys

2001-10-23 Thread Shannon Murdoch
Hi all, I know how to print the contents of a hash, but what if I wanted to print the keys themselves that the hash is called from (delimited by tabs)? This is how I print the contents of a hash (Thanks to Brett W. McCoy): %params = qw( i01 4 i02 5 i03 2 ); foreach (sort keys %params) { print "

Re: Printing Hash Keys

2001-10-23 Thread Brett W. McCoy
On Wed, 24 Oct 2001, Shannon Murdoch wrote: > I know how to print the contents of a hash, but what if I wanted to print > the keys themselves that the hash is called from (delimited by tabs)? > > This is how I print the contents of a hash (Thanks to Brett W. McCoy): > > %params = qw( > i01 4 > i0

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread pAuLyOYo
there is no changes... shows me the same error! thanks anyway... tom poe <[EMAIL PROTECTED]> wrote: On Tuesday 23 October 2001 18:44, you wrote: > Hey~ > I've been trying to made a simple guestbook, i > copyed the whole code from "Learning Pearl"(O'Reillys > book) i uploaded to tripod and didn

Re: Printing Hash Keys

2001-10-23 Thread Shannon Murdoch
> From: [EMAIL PROTECTED] (Brett W. McCoy) > > On Wed, 24 Oct 2001, Shannon Murdoch wrote: > >> I know how to print the contents of a hash, but what if I wanted to print >> the keys themselves that the hash is called from (delimited by tabs)? >> >> This is how I print the contents of a hash (Th

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread pAuLyOYo
i changed. keep brings the same error... steven mckean <[EMAIL PROTECTED]> wrote: pAuLyOYo wrote: Hey~ I've been trying to made a simple guestbook, i copyed the whole code from "Learning Pearl"(O'Reillys book) i uploaded to tripod and didn't work show me this: .. It looks lik

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread Mel Matsuoka
At 06:44 PM 10/23/2001 -0700, pAuLyOYo wrote: >Hey~ >I've been trying to made a simple guestbook, i >copyed the whole code from "Learning Pearl"(O'Reillys >book) i uploaded to tripod and didn't work >show me this: > >.. >It looks like there was an error: >Your script produced this err

Re: Simple Guestbook "CGI.pm in @INC"???

2001-10-23 Thread RaFaL Pocztarski
pAuLyOYo wrote: > > Hey~ > I've been trying to made a simple guestbook, i > copyed the whole code from "Learning Pearl"(O'Reillys > book) i uploaded to tripod and didn't work > show me this: Besides of spelling mistakes which Mel Matsuoka has already told you about, it looks like for some st

Re: Need help desperately on codes!

2001-10-23 Thread RaFaL Pocztarski
Sunthari wrote: > I really someone understands what I 'm trying to do > with the codes below.Pls help me to troubleshoot the > codes below. Just my advice: when you post a message with such a meaningless subject, without any information what do you actually have problems with, and just paste 3 s