#!/usr/bin/perl my $a = 0; my $sethour = 0; my $setmin = 0; while ($a == 0) { ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $mon=$mon+1; $year=$year+1900; #system(clear); print "   Perl Alarm Clock\n"; print "  -================-\n"; print " Jetzt ist: Jahr  = $year Monat = $mon Tag   = $mday Stunde  = $hour Minute  = $min "; print "Hour to play: "; $sethour = ; chomp $sethour; print "Minute to play: "; $setmin = ; chomp $setmin; while ($a == 0) { # system(); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $mon=$mon+1; $year=$year+1900; print "h= $hour m= $min s= $sec  D=$mday M=$mon Y=$year $wday $yday $isdst|\n"; print "Wake up time: $sethour:$setmin:00\n"; sleep (10); if ($hour == $sethour && $min == $setmin) #<-Hier kannst Du beliebig erweitern { print "beeb "; #oder welche Aktion auch immer $a++; } } }