Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Sidney on August 22, 2001, 01:58:46 AM

Title: cgi scripts
Post by: Sidney on August 22, 2001, 01:58:46 AM
Hello,
 
  I am looking for a cgi script that generates webpages.
could you tell me a little about it and if it cost any thing.



Thanks
Title: Re: cgi scripts
Post by: Sidney on August 22, 2001, 02:18:10 AM
I have one more question.

is perl located un the director /usr/bin/perl ?
what path should I set so that a cgi script can us perl ?

what verion of perl is installed on 4.1.2 e-smith ?


thanks
Title: Re: cgi scripts
Post by: Scott Smith on August 22, 2001, 02:28:09 AM
> is perl located un the director /usr/bin/perl ?
> what path should I set so that a cgi script can us perl ?

[root@maildev /root]# which perl
/usr/bin/perl

To force your scripts to use perl, put the follow as the FIRST line of the script:

#!/usr/bin/perl

> what verion of perl is installed on 4.1.2 e-smith ?

[root@maildev /root]# rpm -q perl
perl-5.00503-12

Scott
Title: Re: cgi scripts
Post by: Scott Smith on August 22, 2001, 02:29:45 AM
Re the perl version -- that is from an older e-smith server. Current 4.1.2 uses:

[root@e-smith /root]# rpm -q perl
perl-5.6.0-9

Sorry about that :-/

Scott
Title: Re: cgi scripts
Post by: sidney on August 22, 2001, 04:51:18 AM
Thanks scott