newbie need help

2003-01-14 Thread Glynn S. Condez
Hi all, in new in perl language and i need help how to make my first cgi-perl script work. i have a web form that users can input a username and password and check if the username is valid by parsing or extracting the contents of a file, here the web form html: Username Password· my pe

Re: newbie need help

2003-01-15 Thread Glynn S. Condez
ged on the code? TIA glen > On Wed, 15 Jan 2003 15:54:02 +0800, [EMAIL PROTECTED] (Glynn > S. Condez) wrote: > > >i have a web form that users can input a username and password and check if > >the username is valid by parsing or extracting the contents of a file, here >

Re: newbie need help

2003-01-16 Thread Glynn S. Condez
3,$field4,$field5,$field6) = split /\s/, $_; > if ($username eq $field2) { > #only print when we find a match > print "OK\n"; > print "$username and $password\n"; > #store that we have found a match so we don't print "oops try again"

Help in running cgi script to append passwd file, shadow and group

2003-01-23 Thread Glynn S. Condez
Hi All, I created a cgi perl script, its an account creation script, means you can add an account to a linux system. my problem is, the cgi can't append the password, shadow and group file. How can I make my script to work? I don't have any idea now if its possible to make the script work. TIA

Re: Help in running cgi script to append passwd file, shadow and group

2003-01-27 Thread Glynn S. Condez
From: "Jason S" <[EMAIL PROTECTED]> Guys, thanks for great idea. now i know how to solve this problem :) glen > > > On Fri, 24 Jan 2003 15:30:59 +0800, [EMAIL PROTECTED] (Glynn > > S. Condez) wrote: > > > > >Hi All, > > > > > >I

Using variable to another script

2003-02-05 Thread Glynn S. Condez
Hi all, I have a question. From a web form, i pass the info to a cgi script. i have this variable on the script: $username = param('username'); $lastname = param('lastname'); my question is, how can i use that two variable to another script open by this command: system('sudo', '-u', 'www', '/

using variable to another script

2003-02-06 Thread Glynn S. Condez
Hi all, I have a question. From a web form, i pass the info to a cgi script. i have this variable on the script: $username = param('username'); $lastname = param('lastname'); my question is, how can i use that two variable to another script open by this command: system('sudo', '-u', 'www', '/

Perl Script wont run in cronjob

2003-03-19 Thread Glynn S. Condez
Hi All, I have a proble with my perl script to run in cronjob. When i run the script in shell like this it works #perl /path/to/perlscript or #./path/to/perlscript what should be the problem running on cronjob. both this doesnt work. */5 * * * * perl /path/to/pingscript */5 * * * * /path/to/per