i have a file that contains a list of IP addresses like:
20.45.76.196
15.76.96.156
21.34.56.146
...etc
how do i compare each entry in this file to check if it matches with the input that the user has given. the input given exists in the variable $in{IP}
does anyone know how to do this? please...
thx a lot..i'll trythat.what i'm trying to do now is compare 2 files. this is the code that i am using.
$file3 = "file3.txt";
open(F1, "+>$file3");
@lines3 = (<F1>);
foreach $i (0..$#lines3)
{
print F1 " ";
}
$file1 = "file1.txt";
open(F...
hi...now i have to do whatever i have done so far for WIN NT...could someone please tell me how i can run a windows command from within a perl-cgi script. for example..if i have to run C:\Program Files\scanners\strobe.exe
how do i do this?? please help.
Regards
samantha
thx Neil...that worked perfect...
Tracy....i tried the code that u gave me but it always returns unknown.
This is my htacces file...could u please tell me what is wrong. thx a lot.
authtype Basic
authname "RESTRICTED--ENTER USERNAME AND PASSWORD"...
Undefined subroutine &main::a called at /home/samantha/apache_1.3.17/cgi-bin/sam2.cgi line 119.
This is the error that is being generated even after i have changed the path to an absolute path. the link does not even get displayed on the screen. before i changed it to the absolut path also i...
Tracy....i tried the code that u gave me but it always returns unknown.
This is my htacces file...could u please tell me what is wrong. thx a lot.
authtype Basic
authname "RESTRICTED--ENTER USERNAME AND PASSWORD"
AuthUserFile /home/samantha/apache_1.3.17/htdocs/.htpasswd
require...
could someone please answer the previous question...i have another question...how do i get the "remote user" who accesses a particular script. this variable does not seem to be a part of $ENV. also when i execute the script from the cgi-bin directory itself it contains variables like...
none of the ahref statements in this coe r working. could anyone please tell me what the problem is. the file that the link must point to ..exists. thx in advance. its urgent.
#!/usr/bin/perl
%in= &getcgivars ;
print "Content-type: text/html\n\n" ;
print <<EOF ;
<html>...
how do i create a lockfile???
this is the command that i have used to run a scan in the background:
$result = system("`scan operation`&");
is this right??? please comfirm. also confirm abt the question before this. thx.
regards
samantha
could u please explain ur code further. i have added the meta tag in the html code from where i call the script i.e the action performed by the html code is calling the script. is this right? please verify asap. thx a lot!
samantha
i am running the scan in the background. i ask the script to print "." until it finds the file( the results file). the checking is done using the -e option. this does not work though. the do -until loop keeps on going until the operation times out. what do i do? i must not display the...
i am running the scan in the background. i ask the script to print "." until it finds the file( the results file). the checking is done using the -e option. this does not work though. the do -until loop keeps on going until the operation times out. what do i do? i must not display the...
when a particular scan is being executed i want to indicate to the user that the scan is going on. how do i do that? after the command for the scanner is given in the CGI script any print statement that is given after this is not executed. why is that? the scanner does take a long time to give...
thx for the suggestion..i'll try that. could u please tell me how to search through a directory from a CGI script to check if a particular file exists. thx
regards
samantha
when i print the result within 'tt' tags the result gets printed...but without all the indentation and the spaces etc that were there in the original result.
Regards
Samantha
thx again.....after i store the result in a scalar ...how do i output this onto a webpage.
i need the output yo be the same as that given by the scanner. how to a create a hyperlink in a CGI script?
regards
samantha
thx...this is not meant for the public.
when i run the command `nc -v IPaddress portno`
nothing seems to be happening....should the executable file of the scanner be in any particular directory?
and how do i retrieve the output if any?
regards
samantha
thx...this is not meant for the public.
when i run the command `nc -v IPaddress portno`
nothing seems to be happening....should the executable file of the scanner be in any particular directory?
and how do i retrieve the output if any?
regards
samantha
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.