Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by sammy100

  1. sammy100

    IP address matching

    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...
  2. sammy100

    Running Sanners from a CGI script

    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 = &quot;file3.txt&quot;; open(F1, &quot;+>$file3&quot;); @lines3 = (<F1>); foreach $i (0..$#lines3) { print F1 &quot; &quot;; } $file1 = &quot;file1.txt&quot;; open(F...
  3. sammy100

    Running Sanners from a CGI script

    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
  4. sammy100

    Running Sanners from a CGI script

    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 &quot;RESTRICTED--ENTER USERNAME AND PASSWORD&quot...
  5. sammy100

    Running Sanners from a CGI script

    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...
  6. sammy100

    Running Sanners from a CGI script

    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 &quot;RESTRICTED--ENTER USERNAME AND PASSWORD&quot; AuthUserFile /home/samantha/apache_1.3.17/htdocs/.htpasswd require...
  7. sammy100

    Running Sanners from a CGI script

    could someone please answer the previous question...i have another question...how do i get the &quot;remote user&quot; 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...
  8. sammy100

    Running Sanners from a CGI script

    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 &quot;Content-type: text/html\n\n&quot; ; print <<EOF ; <html>...
  9. sammy100

    Running Sanners from a CGI script

    how do i create a lockfile??? this is the command that i have used to run a scan in the background: $result = system(&quot;`scan operation`&&quot;); is this right??? please comfirm. also confirm abt the question before this. thx. regards samantha
  10. sammy100

    Running Sanners from a CGI script

    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
  11. sammy100

    Running Sanners from a CGI script

    i am running the scan in the background. i ask the script to print &quot;.&quot; 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...
  12. sammy100

    Running Sanners from a CGI script

    i am running the scan in the background. i ask the script to print &quot;.&quot; 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...
  13. sammy100

    Running Sanners from a CGI script

    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...
  14. sammy100

    Running Sanners from a CGI script

    one more question...how do find the IP address of the local host and assign it to a variable. samantha
  15. sammy100

    Running Sanners from a CGI script

    thx tracy. how to i change the permissions in a script to be able to execute commands that require root access? Regards samantha

Part and Inventory Search

Back
Top