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...
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...
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
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...
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
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
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...
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...
Sticking with your split you could also do:
[code]
@split_email = split(".", $name");
print ucfirst($split_email[0]).".".ucfirst($split_email[1])."\n";
[code]
The ucfirst() function converst the first character for the string to upper case.
Derek
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...
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...
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...
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...
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...
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...
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...
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...
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 ("\$file =~ $srch")
}
close TERMS;
and put the full...
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.