in reply to Doing every X seconds

You may take a look at Parallel trigger of different subs and try to modify some of the examples for your needs.

Minor Update: Slightly better wording.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help