RE: How to reboot?

2024-01-13 Thread twlewis via beginners
Hi hw, I had a similar situation in which I travelled. I wanted to lock down the ufw firewall but be able to allow certain IP addresses based on the hotel IP or my cell service IP. To that I developed Perl that would check my smtp account. The script is controlled through a cron job that run

RE: converting dates to epoch seconds and back

2013-01-18 Thread twlewis
Bill, it appears to have to do with it pick the time not being populated, and it picking up the date from yesterday. I added some lines to test this theory. Try running the code below without an argument, and then with an argument. Tim #!/usr/bin/perl use strict; use warnings; use Time::Loc

Pattern matching to hash

2012-12-28 Thread twlewis
I hope this is a simple fix. I want to check the beginning characters of items in a hash, and compare that to a scalar variable. I do not need for the entire value to match; just the first couple of characters. Here is a simple example of what I want, but it does not work. Both "if" statemen