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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: J1mbo
  • Content: Threads
  • Order by date
  1. J1mbo

    Help with rewrite rule

    I have the following working rules in my httpd.conf for redirecting http to https based on the URI: ### Redirect port 80 to port 443 (ssl) for secure content RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{REQUEST_URI} ^.*(password|phpmyadmin).*$ [NC] RewriteRule ^.*$...
  2. J1mbo

    eval a hash variable inside function

    I have this code that parses smb.conf and puts a users shares/descriptions into a hash of the username: open(CONFIG, "$smbconf") || die; while (<CONFIG>) { next unless m/^\[([a-zA-Z0-9]+)\]$/; $ShareName = $1; while (<CONFIG>) { next unless m/^\s+comment \=...
  3. J1mbo

    How to restrict website access by country

    I had a hacker deface my website a few weeks ago. I've since blocked his IP address range from accessing my site. I'm was wondering if anyone has a mapping of IP addresses to countries so i can block everyone outside the US? I've looked around google w/o any luck. Thanks,
  4. J1mbo

    Get Windows Login name from within a CGI

    Ok, i'm new to programming in perl to interface with windows systems. All of my experience is with Unix systems. Here is my question: Is there a module or method that can determine what the Windows login name is for a person who visits a webpage? I'm trying to create a login page that...
  5. J1mbo

    can't write to file when it's read into script as a variable

    I have a configuration file which contains many 'name = value' statements. This configuration file is used by several related cgi scripts. I seem to be having an issue with a few lines in my config file being read into my perl script and then being written to by a system command. The file...
  6. J1mbo

    How to force file download of a known file type

    Hello, I run a small website (www.autocross.us) that hosts mpg video content. How do i force a download prompt to appear instead of media player attempting to play the video when the left mouse button is clicked? I've asked users to 'right-click' and 'save target as', but this is not...
  7. J1mbo

    Hello, Does anyone have good ref

    Hello, Does anyone have good reference for the various errors associated with the 'mailq' command output. i.e: (Deferred: Connection reset by.....) I can't seem to locate anything useful on google and i need this for a script i'm working on. thanks, -jim
  8. J1mbo

    Problem with sendmail patch after a reboot

    Hi, i applied the remote vunerability patch to one of my sendmail servers tonight and had a problem with the reboot hanging. I basically had to fsck the filesystem and restore my previous configuration before the patch. I now get this error related to Mimedefang every few seconds on the...
  9. J1mbo

    how to store octal permission of a file in variable?

    How can i capture the octal permission value of a file to a variable in perl? example: -rwxr--r-- 1 root other 38 Jan 31 12:43 test1 I need a variable that has a value of '744' so i can use it later. Thanks, jim
  10. J1mbo

    How to alpha and numeric sort an array

    I have an array called @list with these elements: 31 BBB0094 31 BBB0096 20 BBB0094 31 AAA0091 31 AAA0093 10 AAA0091 10 BBB0091 20 AAA0091 20 AAA0092 I cannot figure out a perl way to sort the 1st column numerically while also...

Part and Inventory Search

Back
Top