D
Daniel Dalton
Hi!
I'm writing a program to provide me with battery warnings when my
battery hits certain levels. It just checks the current level and does
something. I plan to call it from a a cron job. But If the cron runs
every minute, warnings every minute would be rather annoying. so is
there a way to make the script check if it has already ran before?
eg. can I write to a variable on one run of the program, and on the next
read that value that was written?
Thx!
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknggMsACgkQQCYsNYjKJVDhAQCguaGqsjCpcU62Zw5ZwUGfcxM4
bi4An3c7q0p5mLU/LM2lemBPZibmIoPb
=6LP+
-----END PGP SIGNATURE-----
I'm writing a program to provide me with battery warnings when my
battery hits certain levels. It just checks the current level and does
something. I plan to call it from a a cron job. But If the cron runs
every minute, warnings every minute would be rather annoying. so is
there a way to make the script check if it has already ran before?
eg. can I write to a variable on one run of the program, and on the next
read that value that was written?
Thx!
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAknggMsACgkQQCYsNYjKJVDhAQCguaGqsjCpcU62Zw5ZwUGfcxM4
bi4An3c7q0p5mLU/LM2lemBPZibmIoPb
=6LP+
-----END PGP SIGNATURE-----