Perl Script Problem

Anton Hofmann doomrunner.lists at gmail.com
Thu Nov 15 10:47:28 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

hope some perl gurus read that.

i have a problem with a small prerl query.


if ($error eq "0") {
	system ("/vmbackup/send.sh -u Backup complete.");
	}
if ($error gt "0" and $error le "999") {
	system ("/vmbackup/send.sh -u Backup error");
	}
if ($error gt "1000") {
	system ("/vmbackup/send.sh -u Backup error, snapshot available");
	


the previous part of the script reads a value out of a txt file, if the
value is 0 the first mail (Backup complete) is send by the send.sh script.

if the value is 1001 i get the mails "Backup error" and "Backup error,
snapshot available". But the value is higher than 1000 so the query
if ($error gt "1000") should grasp.

I dont understand why if ($error gt "0" and $error le "999") grap to.
This query should just send a mail if the value in the txt file is
between 0 and 999.

So long....

Anton
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFHPCPAUhOOK1n0VVkRApsrAJ9K/vf9v/6lDShrNN4bDGKYg1lcBwCfV9Q/
vfBb8xm4gi0eSd7i3XUfEgU=
=kfgh
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list