savant-cgi-help Mailing List for Savant Web Server
Brought to you by:
lamonml
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(4) |
Sep
(8) |
Oct
(4) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2003 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: cindy r. <cin...@tr...> - 2003-04-22 17:57:54
|
I am new to creating forms and am using BigNoseBird.com's BNBFORM = All-In-One Form Processing Script. I am supposed to be able to 1. set up = the form to send me an email when someone fills out the form and 2. = output the data to a file.=20 =20 I had no trouble with part 1.=20 =20 For part 2, I want to send the data to a place where I can get it and = use it in Excel but I'm not sure if this file is being created. If it is = being created, I don't know where it is. =20 This is the line in the form that mentions the output file: <input = type=3D"hidden" name=3D"outputfile" value=3D"form1"> =20 This is the way BNB shows it in the readme file. BNB's readme file says: = =20 Outputfile tells the system you want to log information ans what to name = the file. The script will create the file with proper permissions for = you. *** You can also specify the actual path to the file if you will be = running this outside of the main cgi-bin directory or if you want the = data elsewhere. =20 How should I set up my form? Thanks in advance for any help you can give = me. =20 Cindy |
From: Gordon S. <Gor...@ir...> - 2002-05-01 23:08:15
|
From: Gordon S. <Gor...@ir...> - 2002-02-05 00:21:39
|
Hi there... Does anyone have this problem ? Im running a CGI script (Ive emailed it home, & it works fine) but at = work, I get=20 " internet Explorer cannot open internet site (url of script) The server returned an invalid or unrecognised response." anyway, The debugging programmes ive got aint going. in CGI - I use the Perl Debugger _ i get 2-3 pages of errors, However i = cant "see" the 1st page - Only the last page (all the "errors" mentioned = - are correct - Ie, they're not errors..=20 No errors come up on the web-page & the server logs say a normal "200" = code.. on the request Have you any ideas on how to actually get the Perl errors, to display = on-screen ? Ive got the usual - warnings, & fatals to browsers etc... any ideas ? Fustrated. G. |
From: Gordon S. <Gor...@ir...> - 2001-10-10 03:38:42
|
Hi there, I had a thawt (would wonders come too soon ?) I had apparently associated CGI files with TEXT-PAD - LOL ive re-associated it with the Perl compiler - so things are back to = normal. (I wonder how it is so easy to change association types - if i didnt = notice ? - & no one else uses my work PC..) G. "unrecognised response" Hi there - earlier today, my CGI scripts were OK - They were working.. but now - Ive re-booted my work Pc - & now whenever i go into a cgi / Perl = script it says "The server returned an invalid or unrecognised response" my Savant main scren says the request ius status "200" (normal).. any ideas ? =20 G. sav...@ya... |
From: Gordon S. <Gor...@ir...> - 2001-10-10 03:31:18
|
"unrecognised response" Hi there - earlier today, my CGI scripts were OK - They were working.. but now - Ive re-booted my work Pc - & now whenever i go into a cgi / Perl = script it says "The server returned an invalid or unrecognised response" my Savant main scren says the request ius status "200" (normal).. any ideas ? =20 G. sav...@ya... |
From: nickie <nic...@fr...> - 2001-10-05 21:53:58
|
Thursday, September 27, 2001, 1:19:35 PM, Gordon Stewart wrote: gs> Michael, gs> I often find that i create new cgi / perl scripts gs> using savant - Which is a great system (usually).. gs> I have 1 simple request. gs> Savant doesnt implement / use the "Flock" command for gs> Perl scripts - While other servers do use that - or it gs> is required - So files wont be deleted accidentally. gs> IDEA / REQUEST :- gs> Is it possible for Savant - Instead of bringing up an gs> error screen when encountering the 'flock' command. - gs> Can Savant just ignore it, & continue on with the gs> script ? gs> So we can easily use scripts on or off savant - with gs> little or no need to put the # in front of every flock gs> command, or take it out when sending the files gs> elsewhere. Gordon, the only way I managed to get a Perl script containing the flock command to run on Windows/Savant was to remove/negate the flock command in every instance. The Perl scripts then ran just fine without the flock in them. I found the same happened when I used Windows/ Apache combination, so gather from this that it's Windows itself that doesn't support the flock command? -- Cheers, Nickie mailto:nic...@fr... |
From: Gordon S. <Gor...@ir...> - 2001-10-04 01:33:33
|
Hi - Ive got MIRC & a HTML version - site, to access the mIRC chat.. The ones ive got - "load" a server - some IP number - to log into the = room.. Is there any CGI / Perl script i can d/load to do the same thing on my = Savant system ? - NOT going through another server etc.. So when im online, we can have live chats with people. I dont need seperate "rooms" etc., - It could be useful - but i only need = just the one room/channel. G. |
From: Gordon S. <Gor...@ir...> - 2001-09-28 02:41:27
|
Ive done a quick test of my system :- & have added these to my cgi script - i'll add them at home later - = They'll do for me. :- if ($ENV{SERVER_SOFTWARE} =3D~ !/^savant/ig){ flock(INF,2); } Basically seeing if its a "savant" - & ignoring the flock.. I'll test it further - at home.. However - Would it be better, to test for the HTTP_USER_AGENT ?:- HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95; IR-v1.0.0)= ' - & ignoring all 'Windows' ? But i guess theres a 'windows' that works on Linux / Unix systems ? any further ideas ? - To develop 1 system, to work for all users...=20 just a thought.. - I guess i'm the only one using Savant to 'test' on at = home, & comes accross this situation ? G. >>> Michael Lamont <la...@he...> 09/28/01 06:54 >>> On Fri, 28 Sep 2001, [iso-8859-1] gordon stewart wrote: Unfortunately, this isn't a Savant implementation issue so there isn't much I can do about it. The Perl interpreter itself handles these flock requests - Savant just calls the interpreter and hands back either the output from the script or an error message. The UNIX implementations of Perl support flock (mainly because flock() is a native UNIX system call). The version of Perl that ships with Savant is a couple versions older than the most recent - if you haven't already, you might consider going to activestate.com and downloading/installing a newer version. I honestly doubt that any version of Perl on Win32 supports flock, but I've been known to be wrong before about this sort of thing. |
From: Michael L. <la...@he...> - 2001-09-27 18:55:17
|
On Fri, 28 Sep 2001, [iso-8859-1] gordon stewart wrote: > Michael, > > Savant doesnt implement / use the "Flock" command for > Perl scripts - While other servers do use that - or it > is required - So files wont be deleted accidentally. Unfortunately, this isn't a Savant implementation issue so there isn't much I can do about it. The Perl interpreter itself handles these flock requests - Savant just calls the interpreter and hands back either the output from the script or an error message. The UNIX implementations of Perl support flock (mainly because flock() is a native UNIX system call). The version of Perl that ships with Savant is a couple versions older than the most recent - if you haven't already, you might consider going to activestate.com and downloading/installing a newer version. I honestly doubt that any version of Perl on Win32 supports flock, but I've been known to be wrong before about this sort of thing. > G. Michael |
From: <gor...@ya...> - 2001-09-27 12:19:35
|
Michael, I often find that i create new cgi / perl scripts using savant - Which is a great system (usually).. I have 1 simple request. Savant doesnt implement / use the "Flock" command for Perl scripts - While other servers do use that - or it is required - So files wont be deleted accidentally. IDEA / REQUEST :- Is it possible for Savant - Instead of bringing up an error screen when encountering the 'flock' command. - Can Savant just ignore it, & continue on with the script ? So we can easily use scripts on or off savant - with little or no need to put the # in front of every flock command, or take it out when sending the files elsewhere. G. Lamont ===== G. Stewart New Zealand chat & Discussion group email new...@ya... for details. |
From: Gordon S. <Gor...@ir...> - 2001-09-27 00:20:31
|
print "<!--#exec cgi=3D\"bannerside.pl\" -->\n"; in my normal SSI server my CFGI script simply prints the above - & it = works fine... How do you do that with no SSI ? Ive tried variants on :- ---------------------------- You could do: print `/my/prog arg1 arg2`; or print qx(/my/prog arg1 arg2); or system "/my/prog", "arg1", "arg2"; However, system() might not display when you THINK it will -- be careful with that one. ---------------------- G |
From: Gordon S. <Gor...@ir...> - 2001-09-26 23:47:55
|
Without using a module/poackage.. is there a way on Savant, to 'call' another CGi file from within a CGI = file ? Basically, Im going from a site that has SSI, to a site with NO SSI... & I know Savant has no SSI, so the procedure would be the same.. Basically, I want to=20 :- do my script.. :- 'call' / 'activate' an 'ad.cgi' / 'ad.pl' script,=20 Then resume my original script (CGi/Perl) from where i left off.. G. |
From: Gordon S. <Gor...@ir...> - 2001-09-25 06:07:32
|
CGI - perl ? Hi there, Im using system("del $final"); to delete the file file in the = variable $final. i *want* the file to be deleted, however its read-only, & my system is = unable to delete it. In experimenting with the Perl "chown" command, but the docs dont say much = on how to use it. Please advise.. G. |
From: Gordon S. <Gor...@ir...> - 2001-09-24 04:58:26
|
is the db.pm file the only one ypou need / 'use' / 'require' ?? ive got the same files at home & work - But, at work, i get the error :- No write permission to sdbm file at C:\Savant\Root\cgi-bin\radc2\createtabl= e2.cgi line 43, <FOO> line 1. The line 42 shows :-=20 dbmopen (%DBM, $dbm_file, O_RDWR) or die ("Could not OPEN DBM file: $!"); The line 43 shows :-=20 $DBM{$key} =3D $val or die ("Unable to add key: $!"); in the Open line - is " O_RDWR" correct ? G. |
From: Gordon S. <Gor...@ir...> - 2001-09-24 04:09:42
|
Hi=20 1) anyone using DBM database files using perl ? 2) Ive got a small 'test' filre at home - going.. But my one here , Doesnt Go. - Is this list active ? (cgi-help one) Ive requested a copy of my options, & I should be receiving email - But = ive not seen any for several weeks / months. G. |
From: Gordon S. <Gor...@ir...> - 2001-08-31 01:04:38
|
Has anyone got BLAT going ? Ive managed to send a file using BLAT on savant, but not an email = message... Someone suggested :- (using perl) --------------------------------------------- you can do: open (BLAT,"|blat - -to user@d... -subject test"); print BLAT "this is the message body."; close (BLAT); no need to use a file there, just replace "this is the message body." with = a variable containing the text of your message :) The close command on BLAT sends blat the signal that there's no more input (like the "[ctrl]+Z" in = the help file). --------------------------------------------- But ive tried it at work, but it aint going.. G. |
From: <gor...@ya...> - 2001-08-29 14:25:37
|
--- Michael Lamont <la...@he...> AYE - The savant-discuss list is open again :-) Im getting messages from both groups... Michael - Ive just found a kewl programme called "blat" - http://gepasi.dbs.aber.ac.uk/softw/Blat.html Basically, it allows you to send e-mail a text-file (on your hard-drive) - & sends it oin-line (as a normal email) could also send non-text messages - But its a bit late - 2:15 a.m. - Off to bed.. - But i tried it & it works. to those that want to send email - what i figured out / thought of.. :- Use your perl script to create a text-file of your email you want to send - & then re-direct to blat - to send it. Although - What if 2 - 3 people do it at once - all get the wrong messages (havn't figured it out as yet) But as i said, - Im off to bed - Glad to see these groups up & running.. Goodnight.. PS - Michael - I THINK the website said the source-code is available - not sure - You may be given ideas on how to develop Savant. G. > sendmail is a UNIX SMTP server - it doesn't run on > any Windows > platform. If there's enough interest (and I find > enough time) I can try > to write a basic replacement for sendmail that won't > require Savant users > to re-write CGI designed for the UNIX environment. > > > (Still finding the place to d/load it (sendmail) > > from).. > > sendmail's homepage is http://www.sendmail.org As > stated before, there's > not a Windows version though. > ===== G. Stewart New Zealand chat & Discussion group email new...@ya... for details. _____________________________________________________________________________ http://shopping.yahoo.com.au - Father's Day Shopping - Find the perfect gift for your Dad for Father's Day |
From: Michael L. <la...@he...> - 2001-08-29 13:32:29
|
On Thu, 30 Aug 2001, [iso-8859-1] gordon stewart wrote: > > Hi - Does 'sendmail' work on Savant ? > I heard somewhere, that theres no way to do email on > Savant. sendmail is a UNIX SMTP server - it doesn't run on any Windows platform. If there's enough interest (and I find enough time) I can try to write a basic replacement for sendmail that won't require Savant users to re-write CGI designed for the UNIX environment. > (Still finding the place to d/load it (sendmail) > from).. sendmail's homepage is http://www.sendmail.org As stated before, there's not a Windows version though. > G. Michael |
From: <gor...@ya...> - 2001-08-29 12:16:26
|
Hi - Does 'sendmail' work on Savant ? I heard somewhere, that theres no way to do email on Savant. (Still finding the place to d/load it (sendmail) from).. G. ===== G. Stewart New Zealand chat & Discussion group email new...@ya... for details. |
From: MARILYN L M. <m_a...@pr...> - 2001-05-02 21:09:48
|
On Windows 98 I used the following to setup .pl and .cgi in the Windows = Registry but on Windows ME there is no Script Map. How do I do this = procedure in Windows ME. Right now all I get is a blank DOS box instead = of actually running perl program. HKEY_LOCAL_MACHINE System CurrentControlSet Services W3SVC Parameters Script Map 1.. Select the key "Script Map". From the edit menu choose "New" then = "String Value".=20 2.. Name the new value ".pl" (no quotes) and click okay.=20 3.. Double-click on the ".pl" you just created and enter=20 "C:\Perl\bin\perl.exe %s %s" for its value (without the quotes), = making sure the s's are lower case. If your path to the perl interpreter = is not the same as the default above, adjust it accordingly.=20 4.. Close the registry and restart your computer. Restart the web = server if it doesn't start automatically.=20 |