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 strongm 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: *

  1. derekpc

    deleting a pattern in all files in a directory

    You didn't say whether everything between <!CDATA[ and ]]> is on a single line, but, if so, something like the below should work. If not you would have to handle matching across multiple lines. I am sure there is a cleaner way, but it should work substituting ./xml_logs with whatever the...
  2. derekpc

    Apache 2.2.0 Solaris 8 mod_autoindex bad address core_output_filter

    I'm running Apache 2.2.0, a recent upgrade from 2.0.49, on Solaris 8. Under 2.0.49 we were using a complicated javascript driven HeaderName file and fairly simple ReadmeName file which worked well withour directory listings. Following the upgrade the output from a directory listing is now...
  3. derekpc

    Nawk Solaris 8 newline in string

    Thanks PHV, that did the trick. Any idea why it works properly in a BEGIN statement, but not as a command line switch? Appreciate the assistance. Derek
  4. derekpc

    Nawk Solaris 8 newline in string

    Thanks PHV. I will give it a try and let you know. Derek
  5. derekpc

    Nawk Solaris 8 newline in string

    I have a ksh script that utilizes nawk to set some variables. It is running succesfully on two of my domains, one running on a SUN E250 and Solaris 7 and one on a SUN Ultra80 running Solaris 8. On my third domain, I have the same script running on an Ultra10 under Solaris 8 and on only this...
  6. derekpc

    time difference

    How about if ( $diff_time/3600 > 12 ) { # 3600 seconds in an hour print "i$diff_time is more than 12 hours.\n"; } else { print "The time is less than 12 hours.\n"; } Derek
  7. derekpc

    Case sensitive help

    Sigh, tested it twice to confirm I needed to escape the dot and then forgot to enter it that way in my post. Must have been having a bad night. Thanks. [blush] Derek
  8. derekpc

    Creating variables from the values of other variables

    PH and JR, Thank you both very much for your assistance. Looking at PR's second post made me go back and take another look at my attempted use of eval and my debugging output. Turned out that I was assigning the value I needed when using eval, just wasn't retreiving the value properly. I...
  9. derekpc

    Creating variables from the values of other variables

    Thanks PH, The probelm is that I would like $param prepended to _output and have that variable (${param}_output) evaluate to the full path. The actual script has needs the the $param to find some other information. I've read the man ksh man page several times. Guess I am particulalry dense...
  10. derekpc

    Case sensitive help

    Sticking with your split you could also do: [code] @split_email = split(&quot;.&quot;, $name&quot;); print ucfirst($split_email[0]).&quot;.&quot;.ucfirst($split_email[1]).&quot;\n&quot;; [code] The ucfirst() function converst the first character for the string to upper case. Derek
  11. derekpc

    Creating variables from the values of other variables

    I am trying to assign variables using the value of other variables and not getting what I want can someone point me in the right direction please? This is what I have tried: I have a list of parameters in a file called /home/userid/paramdir/params to process in a new line delimited file as...
  12. derekpc

    Installing DBD Mysql

    axman, I installed DBD-mysql last week and encountered the same problem with my MacOSX installation. After a bit of reading I finally got it working. If you run mysql_config, which should be in the bin directory for your mysql installation it will return the configuration settings, which you...
  13. derekpc

    How do I call external script and continue ignoring return

    Andrew, CadGuy and Ishnid, Thank you all very much for the tips. I am going to have to study some more on the exec and fork as when I tried the exec unless(fork) I ended up with many more processes running than I expected. Probably a problem in my loop code some where that I will have to dig...
  14. derekpc

    How do I call external script and continue ignoring return

    I would like to call an external perl script from within a loop, passing it one argument and then continue with the loop without waiting for the external script to return. I don't need to capture anything from the external script as it records it's actions in a separate log file. I think from...
  15. derekpc

    OS x 10.2 Win2K sees MAC not vice versa

    nrb501, Pastor Rob, Thanks for the replies. I'm afraid I missed them earlier. I did finally get it working but I had to set the MAC (using OS X 10.2.4) to DHCP with manual IP. For some reason it just would not get an IP from the DHCP server run by ICS. Strange. As it turned out I couldn't...
  16. derekpc

    OS x 10.2 Win2K sees MAC not vice versa

    I am a brand new MAC user. Trying to network my powerbook G4 to my PC with a NIC to NIC cable connection. I have turned sharing on on the MAC and tried to user Internect Connection Sharing on the Win2K box to act as a DHCP server. When the Mac starts it never gets an IP from the Win2K box...
  17. derekpc

    m/ / operator question

    loosecanon, Try this $var1 =~ /^$var2$/i # matches only if from beginning to end of string is a match. Derek
  18. derekpc

    Perl replacement for sed with command file?

    Mountainbiker and Jim, Thanks very much for the suggestions. I am aware of the security issue in evaling the full regex, but, as it is not running as a CGI and it is a reasonably closed system (I can track who uses it and punish perpetrators of foul deeds) I decided to take the risk. I will...
  19. derekpc

    Calling a cgi program from another cgi program

    Dulux, Once your first cgi script has generated the page to be displayed in the browser it finishes and the connection closes. Your link in the web page would just need to pass the necessary parameters to the second cgi and that script would generate the next web page to be displayed based on...
  20. derekpc

    Perl replacement for sed with command file?

    I have found a method that seems to work can test thoroughly until I get back to work but I have tried this with a limited set of data and get the substitution I expect: while (<TERMS>) { my $srch = $_; chomp($srch); eval (&quot;\$file =~ $srch&quot;) } close TERMS; and put the full...

Part and Inventory Search

Back
Top