Can't display counter....

2001-07-19 Thread Baltazar Ruiz
Hi I'm trying to put a simple text counter with this simple script: **ScRiPtScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt**ScRiPt #!/usr/bin/perl print "Content-type: text/plain", "\n\n"; $count_file = "/usr/apache/html/ingersoll/counter/data/count.txt"; if (open

FW: Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
Answer to my own question... :) (If any one is interested) sub first{ my $select = qq(); } sub second{ my $unid = param('unid'); print $unid; #This then prints out unique_id number of the specific enrty the user has selected #from the the first sub first(). Just goes to show the power

RE: stupid question

2001-07-19 Thread Mark Saunders
Yes. But you could also telnet or ssh (secure shell connection) into the webserver if the host allows it, and execute scripts that way. But chances are you wouldn't do that. -Original Message- From: Tom Malone [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 12:04 AM To: Mark Sau

Form data validation CGI / Perl / MS-FrontPage web page

2001-07-19 Thread Notabene
I would appreciate some help or pointers for the following CGI / Perl / MS-FrontPage 2000 form validation problem: I am writing an autoresponder which generates two e-mails: one to me, and a confirmation back to the sender. I have a form on an MS-FrontPage web page which collects initial user inp

How to send a notification mail from Windows/NT?

2001-07-19 Thread Nazary, David
Hi, When I use the following script to send mail: #!perl -w ### script name "smtp_mailer2.pl" use Net::SMTP; $smtp = Net::SMTP->new('mailhost'); $smtp->mail($ENV{USER}); $smtp->to('dnazary'); $smtp->data(); $smtp->datasend("To: dnazary\n"); $smtp->datasend("\n"); $smtp->datasend("A simple tes

Re: welp?

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, bc wrote: > what is "use strict" for? perldoc strict <-- You should read this -- Brett http://www.chapelperilous.net/btfwk/ BARRY ... That was the most HEART-WARMING

Re: welp?

2001-07-19 Thread bc
what is "use strict" for? - Original Message - From: "Brett W. McCoy" <[EMAIL PROTECTED]> To: "bc" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "Mel Matsuoka" <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 6:29 PM Subject: Re: welp? > On Thu, 19 Jul 2001, bc wrote: > > > this did not

Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
List, I have a problem that I need a hyperlink to take me to a location still situated on my script but I need this hyperlink to be also able to pass on variables to the next sub. I can do this with radio buttons and checkboxes $variable = param('unique_id') HTML as follows... Now I have a

Re: welp?

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, bc wrote: > this did not fix it, changing "=" to "eq" in my if statements...??? > > } > } elsif ($guess eq "toe") { > print ("you guessed it! good job bossman!"); > print ("go read the http://www.abcnews.com>news"); > ) else ( These parentheses need to b

welp?

2001-07-19 Thread bc
this did not fix it, changing "=" to "eq" in my if statements...??? #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); print< customgame end_of_html_start $guess = param("guess"); $name = param("name"); if ($guess eq "") { if ($name eq "") { print ("hello there,

new one...

2001-07-19 Thread bc
new error, darn, i wish the browser would print the errored line #, any ideas yall? Execution of customgame.pl aborted due to compilation errors. was the error... here was my page... #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); print< customgame end_of_html

Re: error info...

2001-07-19 Thread Mel Matsuoka
I wrote: >> At 05:36 PM 07/19/2001 -0400, bc wrote: >> >now this??? >> > >> >Can't find string terminator "end_of_page" >> >anywhere before EOF at customgame.pl line 27. >> >> Here-doc syntax is very touchy. The problem is that your heredoc >terminator >> string is NOT on a line by itself. This

Re: error info...

2001-07-19 Thread bc
i though it was? - Original Message - From: "Mel Matsuoka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:37 AM Subject: Re: error info... > At 05:36 PM 07/19/2001 -0400, bc wrote: > >now this??? > > > >Can't find string terminator "end_of_page" > >anywhere

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:36 PM 07/19/2001 -0400, bc wrote: >now this??? > >Can't find string terminator "end_of_page" >anywhere before EOF at customgame.pl line 27. Here-doc syntax is very touchy. The problem is that your heredoc terminator string is NOT on a line by itself. This means any whitespace after the te

Perl editors (WAS: Re: error info...)

2001-07-19 Thread Mel Matsuoka
At 05:32 PM 07/19/2001 -0400, Brett W. McCoy wrote: > Better yet, get a programming editor like >UltraEdit, emacs, Komodo, etc -- they are designed especially for >programmers and have lots of nice little bells and whistles to help you, >like color sytax highlighting, online help, debugging, compi

Re: error info...

2001-07-19 Thread bc
now this??? Can't find string terminator "end_of_page" anywhere before EOF at customgame.pl line 27. came from: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); print< customgame end_of_html_start $guess = param("guess"); $name = param("name"); if ($name eq

Re: error info...

2001-07-19 Thread bc
thanks... :) - Original Message - From: "fliptop" <[EMAIL PROTECTED]> To: "bc" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 5:26 PM Subject: Re: error info... > bc wrote: > > > > #!/usr/bin/perl -w > > use CGI::Carp qw(fatalsToBrowser); > > #howdy > > use

Re: error info...

2001-07-19 Thread bc
thanks... :) - Original Message - From: "Mel Matsuoka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:27 AM Subject: Re: error info... > At 05:17 PM 07/19/2001 -0400, bc wrote: > >here is the error: > > > >Execution of customgame.pl aborted due to compil

Re: error info...

2001-07-19 Thread fliptop
bc wrote: > > #!/usr/bin/perl -w > use CGI::Carp qw(fatalsToBrowser); > #howdy > use CGI qw(param); you're not using strict. please do. > } elseif ($name eq "randal") { it should be elsif, not elseif. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:17 PM 07/19/2001 -0400, bc wrote: >here is the error: > >Execution of customgame.pl aborted due to compilation errors. > Have you tried to run your script from the commandline using -w and 'use strict' ? I just did, and it spewed back a ton of syntax errors and other strict-related problem

Re: error info...

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, bc wrote: > if i use wordpad, in windows, instead of notepad, which i was told b/c of this >reason, what do i save the script file as: the choices are: > > rich text format (RTF) > unicode text document > text document - MS DOS format > text document > and > word for window

RE: error info...

2001-07-19 Thread Tillema, Glenn
Jext is a great editor too, written entirely in java, and is free. http://www.jext.org cheers, Glenn Glenn Tillema [EMAIL PROTECTED] ADC Telecommunications, Inc. PO Box 1101, MS 508 Minneapolis, MN 55440-1101 Learn about ADC - The Broadband Company - www.adc.com > -Or

Re: error info...

2001-07-19 Thread bc
thanks a lot, i used ulta in my asp mess, i liked it... :) - Original Message - From: "Mel Matsuoka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 11:21 AM Subject: Re: error info... > At 05:13 PM 07/19/2001 -0400, bc wrote: > >if i use wordpad, in windows,

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 05:13 PM 07/19/2001 -0400, bc wrote: >if i use wordpad, in windows, instead of >notepad, which i was told b/c of this reason, >what do i save the script file as: the >choices are: Arghwhoever told you to use Wordpad without qualifying the RIGHT way to save out of Wordpad needs to be f

Re: error info...

2001-07-19 Thread fliptop
bc wrote: > > if i use wordpad, in windows, instead of notepad, which i was told > b/c of this reason, what do i save the script file as: the choices are: save it as a text file, but ftp it as an ascii (not a binary) file. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: error info...

2001-07-19 Thread bc
here is the error: Execution of customgame.pl aborted due to compilation errors. this is the script: #!/usr/bin/perl -w use CGI::Carp qw(fatalsToBrowser); #howdy use CGI qw(param); print< customgame end_of_html_start $guess = param("guess"); $name = param("name"); if ($name eq "") { print (

Re: error info...

2001-07-19 Thread bc
if i use wordpad, in windows, instead of notepad, which i was told b/c of this reason, what do i save the script file as: the choices are: rich text format (RTF) unicode text document text document - MS DOS format text document and word for windows 6.0 any ideas? - Original Message -

Re: BEGIN blocks

2001-07-19 Thread Brett W. McCoy
On Thu, 19 Jul 2001, Miles Sapp wrote: > Can someone please explain what a BEGIN block does? I see from my books > and online documentation that BEGIN blocks are run at compile time and > are run only once, but I'm not sure how that's different from any other > perl code that's not in a loop. A

BEGIN blocks

2001-07-19 Thread Miles Sapp
Hi, Can someone please explain what a BEGIN block does? I see from my books and online documentation that BEGIN blocks are run at compile time and are run only once, but I'm not sure how that's different from any other perl code that's not in a loop. Also, in my test script (below) the block wou

RE: CGI script to ftp from client to webserver

2001-07-19 Thread Bradley M. Handy
Take a look at the Documentation for the CGI.pm module at: http://search.cpan.org/search?module=CGI or presuming that the perl location is in your PATH environment variable you can do this: perldoc CGI Brad Handy --www.jack-of-all-trades.net [EMAIL PROTECTED] > -Original M

CGI script to ftp from client to webserver

2001-07-19 Thread Kerns, Justin
I am trying to write a script that will allow a user to upload a file (any size) to my webserver (W2K). Can anyone offer any good suggestions for starting off? Thanks in advance. JK... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: error info...

2001-07-19 Thread Mel Matsuoka
I wrote: > > Use CGI::Carp qw/fatalsToBrowser/ bc wrote: >i'm using that... >no luck though... Just out of curiosity, did you follow their server-specific perl script debugging info at http://www.netfirms.com/supportSearch?BROWSE=advanced ? If youre developing on Windows, a common problem is up

Re: error info...

2001-07-19 Thread bc
i'm using that... no luck though... - Original Message - From: "Mel Matsuoka" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 9:01 AM Subject: Re: error info... > At 02:54 PM 07/19/2001 -0400, bc wrote: > >does anyone know of a site that lets you use free spac

Re: error info...

2001-07-19 Thread Mel Matsuoka
At 02:54 PM 07/19/2001 -0400, bc wrote: >does anyone know of a site that lets you use free space to >learn perl/cgi? my current one, netfirms, does, but when >i get errors, all it prints to the browser is "it could be a >programing error or a syntax error" I used to use VBScript, >and it, w

error info...

2001-07-19 Thread bc
does anyone know of a site that lets you use free space to learn perl/cgi? my current one, netfirms, does, but when i get errors, all it prints to the browser is "it could be a programing error or a syntax error" I used to use VBScript, and it, when you did an error, it at least told the lin

Re: Do I use fork() for this?

2001-07-19 Thread Mel Matsuoka
At 09:52 AM 07/19/2001 -0700, Randal L. Schwartz wrote: >Type "search in progress" into >http://www.stonehenge.com/perl/googlecolumnsearch >and see the column I've already written on it. > >In fact, keep that URL bookmarked, because anytime you have *any* Perl >problem, I've probably already writ

Weekly list FAQ posting

2001-07-19 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

Re: Running perl scripts on other machines and getting feedback

2001-07-19 Thread Rachel Coleman
On Wed, 18 Jul 2001, Westlake, Andy wrote: > I have written a short perl script to report disk usage on our various > systems at our site. What I would like to do is run the script from a page > on our intranet and get the feedback back. Now I can do this using rsh but > I am sure there is a way

RE: passing form values to another Perl script

2001-07-19 Thread Rachel Coleman
On Wed, 18 Jul 2001 [EMAIL PROTECTED] wrote: > > So how exactly do I add the error checking in there? > Hints anyone since I am very new to this whole process. http://gunther.web66.com/FAQS/taintmode.html has some good clear explanations. > I don't know that's what he asked about... he said he

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
i recommend you buy the Perl Cookbook by o'reily there is a great fork section - Original Message - From: <[EMAIL PROTECTED]> To: "pierre smolarek" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 2:43 PM Subject: Re: Do I use fork() for this? > I'm not sure e

Re: Do I use fork() for this?

2001-07-19 Thread tommy
I'm not sure exactly what 'auto reap' means? Not being a Unix-ian, coming from DOSland, makes my life quite difficult when it comes to understanding Unix. Cheers again, TommyGun. www.y2kdiary.com -Original Message- >From : Pierre Smolarek <[EMAIL PROTECTED]> To : [EMAIL PROTECTED] CC :

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
:) the daemon is server side and runs in the background. So unless you have shell, you can't start it off that easily. What you could use BUT IT IS EXPERIMENTAL is thread. check it out in perldoc. Its really the easy way to do what you do.. Threads will handle all the forking and communication

Re: Do I use fork() for this?

2001-07-19 Thread tommy
Sounds a bit complicated, for the beta1 version, but I may move to something like this as my confidence grows. Is the 'deamon script' a purely server-side app? This is a bit of a prob at them moment as only have FTP for live server and my test box is in the early stages of dementure. Would this

Re: Do I use fork() for this?

2001-07-19 Thread Pierre Smolarek
not really the best way in my opinion what you could do is use two scripts. first script is the cgi, it does what needs to be done to get the data and then pipes it to a deamon script that forks off children for each proccess. The cgi then askes the deamon on the status of its child as t

Re: TkPerl on win32

2001-07-19 Thread Will Cottay
perldoc -q "include path" Raf wrote: > > Hi, > i installed the Tk module for Perl (win32) via ppm (thanks Brett), but now when i >try a simple programm (a simple window) i get following message in return : > " can´t locate loadable object for module Tk::event in @INC (@INC contains >c:/perl

HELP--FW: displaying info in HTML - all in one line....

2001-07-19 Thread Adam Mc Gregor
any one got any input for me? thanks Regards Adam McGregor [EMAIL PROTECTED] Affinity Internet (Pty) Ltd -Original Message- From: Adam Mc Gregor Sent: 19 July 2001 09:56 To: [EMAIL PROTECTED] Subject: displaying info in HTML - all in one line.

Do I use fork() for this?

2001-07-19 Thread tommy
Hello all, I'm currently trying to put a little "search engine" together for a small web site, basically searching through a bunch of files for matching keywords. As I want a Progress Page while the script is doing its work, I show a page while the script is searching (had to use $| to achieve) a

RE: how do you tell....

2001-07-19 Thread Blader Robert G DLVA
I would think very first line could be a clue: #!/usr/bin/perl - or similar - probably Unix # c:/winnt/system32/perl - or some such - probably Windows Rob > -Original Message- > From: Sally [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 19, 2001 6:56 AM > To: perlcgi >

how do you tell....

2001-07-19 Thread Sally
Hi all, are there any signs to look out for when trying to determine if a script was intended for use on a unix server or a WinNT server? I have a script that I found on the web and it will be hosted on a WinNT server, but I don't know what to look for to see if it'll work. Thanks, Sally --

RE: automating database dumps

2001-07-19 Thread PURMONEN, Joni
Use crontab (unix command, which executes a given script automatically in given times) to invoke a shell script... Maybe this can be done in perl as well, I don't know, but I'd use a simple shell script for this kind of jobs. Hope this helps, Joni -Original Message- From: Pavan Kumar Ho

Re: beginner's addressbook tutorial - introduction

2001-07-19 Thread fliptop
Ken Cole wrote: > > I have just started using perl mostly aimed a cgi applications and just > started going thru your tutorial. Let me say it is very good compared > to some I have tried. > > Could I/we (the other perl newbies) have some more _specific_ > information on the modules used. ie Au

automating database dumps

2001-07-19 Thread Pavan Kumar Hotha
Hi All, I am totally new to perl and I want to automate a task in sybase, I need to take backup of 30 databases on a sybase server and compress them and store them in any of the local drives, so that I can take a backup of the same, can any one kindly suggest me how to automate this. syb

RE: Packages, classes, cgi

2001-07-19 Thread Rob Sexstone
Hi Shawn, I'm currently working through the same learning curve on OOP in perl and bought a copy of 'Perl Developer's Guide' by Ed Peschko and Michele deWolfe. I'm finding the tutorial style suits my beginners/intermediate level, and it also comes with a CD full of code examples. (I plan to buy

TkPerl on win32

2001-07-19 Thread raf
Hi, i installed the Tk module for Perl (win32) via ppm (thanks Brett), but now when i try a simple programm (a simple window) i get following message in return : " can´t locate loadable object for module Tk::event in @INC (@INC contains c:/perl/lib c:/perl/site/lib)" what can i do? how do i add

displaying info in HTML - all in one line....

2001-07-19 Thread Adam Mc Gregor
HI I am using cgi to display a text file in an html table on a web site. This is easy when it is all in a line separated by spaces, each new row in the table uses a new line of data in the text file. What I am having trouble with is when all the data is in one line, one below the other: F