05-15-2009
yes you are right... I have a login page..through which I am sending form data by get method. In get method, data go by name=rohit and stored in default variable $QUERY_STRING. Now $QUERY_STRING is name=rohit.
now I want to grep rohit from itand then in the script I would check whether this user rohit exist or not by compairing it with the unix file. If the username exist then I would check the corresponding password.
If all the authentication is done then next page is called up else the error page is thrown back.....
Now please give some suggestion...as I still not able to do it...
Thanks & regards,
Ravi
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
is there any way to compare two grep commands in an if statement? like:
if grep blah = grep blah blah
then
is there a way to store the values of the greps and compare them? the greps are counting pattern matches in two different files and i need to make sure they match. (7 Replies)
Discussion started by: k@ssidy
7 Replies
2. UNIX for Dummies Questions & Answers
Using the bash shell I am trying to read in 2 files. The first file (file1) is a list of names to search for in (file2). If a name in file1 is found in file2 I want the entire line in file2 to be printed to an output file. File1 consists of a single column of names. File2 consists of several... (2 Replies)
Discussion started by: lanna001
2 Replies
3. AIX
I want to read a log file from a particular location.In the logfile , lines contains timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file format.Please... (1 Reply)
Discussion started by: achu
1 Replies
4. AIX
I want to read a log file from a particular location.In the log file each line starts with timestamp.I need to compare the timestamp in the logfile with the current date.If the timpestamp in the log file is less than 4 hours then i need to read the file from that location.Below is the file... (1 Reply)
Discussion started by: achu
1 Replies
5. UNIX for Dummies Questions & Answers
Hi, I'm not sure if this is the right place but I'm a newb so it seemed right. I'm trying to write some code to organize JPEGs. Its a long story, but essentially, I need the program to tell me whether a particular jpeg is of 1) a sheet of paper (lets say its solid pink that takes up the entire... (3 Replies)
Discussion started by: Bengel
3 Replies
6. Shell Programming and Scripting
I have four files, I need to compare these files together.
As such i know "sdiff and comm" commands but these commands compare 2 files together. If I use sdiff command then i have to compare each file with other which will increase the codes.
Please suggest if you know some commands whcih can... (6 Replies)
Discussion started by: nehashine
6 Replies
7. Shell Programming and Scripting
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Discussion started by: sarbjit
1 Replies
8. Shell Programming and Scripting
Hi All,
Need help on this
I have 2 files
one file file1 which has several entries as :
define service{
hostgroup_name !host1,!host5,!host6,.*
service_description check_nrpe
}
define service{
hostgroup_name !host2,!host4,!host6,.*
service_description check_opt
}
another... (2 Replies)
Discussion started by: namitai
2 Replies
9. Shell Programming and Scripting
Hi dear users,
I need to compare numeric columns in two files. These files have the following structure.
K.txt (4 columns)
A001 chr21 9805831 9846011
A002 chr21 9806202 9846263
A003 chr21 9887188 9988593
A003 chr21 9887188 ... (2 Replies)
Discussion started by: jcvivar
2 Replies
10. UNIX for Dummies Questions & Answers
Hi guys, looking for some help with a way to compare data in two files but with some conditions.
example,
File 1 consists of
site1,10.1.1.1
site2,20.2.2.2
site3,30.3.3.3
File 2 contains
site1,l0.1.1.1
site2,50.1.1.1
site3,30.3.3.3
site4,40.1.1.1
I want to be able to match the... (1 Reply)
Discussion started by: mutley2202
1 Replies
LEARN ABOUT MOJAVE
htdigest
HTDIGEST(1) htdigest HTDIGEST(1)
NAME
htdigest - manage user files for digest authentication
SYNOPSIS
htdigest [ -c ] passwdfile realm username
SUMMARY
htdigest is used to create and update the flat-files used to store usernames, realm and password for digest authentication of HTTP users.
Resources available from the Apache HTTP server can be restricted to just the users listed in the files created by htdigest.
This manual page only lists the command line arguments. For details of the directives necessary to configure digest authentication in httpd
see the Apache manual, which is part of the Apache distribution or can be found at http://httpd.apache.org/.
OPTIONS
-c Create the passwdfile. If passwdfile already exists, it is deleted first.
passwdfile
Name of the file to contain the username, realm and password. If -c is given, this file is created if it does not already exist, or
deleted and recreated if it does exist.
realm The realm name to which the user name belongs. See http://tools.ietf.org/html/rfc2617#section-3.2.1 for more details.
username
The user name to create or update in passwdfile. If username does not exist is this file, an entry is added. If it does exist, the
password is changed.
SECURITY CONSIDERATIONS
This program is not safe as a setuid executable. Do not make it setuid.
Apache HTTP Server 2018-07-06 HTDIGEST(1)