Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to wait at each step and check the time. and at the last move to the first step and wait until time is "01:01:00" and execute on next day. How to add a flag at each step when executed and move to the next step.#!/usr/bin/perl use Date::Manip; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime t +ime; while { $time_val="$hour:$min:$sec"; if ($time_val = "01:01:00") { ./abc.sh PB } if ($time_val = "01:02:00") { ./abc.sh AB } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Execute on conditional check
by almut (Canon) on Jun 20, 2010 at 13:32 UTC | |
|
Re: Execute on conditional check
by CountZero (Bishop) on Jun 20, 2010 at 13:42 UTC | |
by Anonymous Monk on Jun 20, 2010 at 14:38 UTC | |
by dineed (Scribe) on Jun 20, 2010 at 19:35 UTC | |
by Corion (Patriarch) on Jun 20, 2010 at 15:15 UTC | |
by Anonymous Monk on Jun 20, 2010 at 15:32 UTC | |
by Corion (Patriarch) on Jun 20, 2010 at 15:35 UTC | |
by hexcoder (Curate) on Jun 20, 2010 at 21:04 UTC | |
|
Re: Execute on conditional check
by ikegami (Patriarch) on Jun 20, 2010 at 21:31 UTC |