A couple of points:
#!/usr/local/perl-5.6.0/bin/perl -w use strict; use PerlMonks; use PerlMonks::Users; my $n=PerlMonks::Users->new; while(1) { my %u=$n->users; if (exists($u{ZZamboni})) { system(q(echo Get to work | /usr/bin/mailx -s "Shouldn +'t you be working on your thesis?" zamboni)); if ($ENV{DISPLAY}) { system(q(wmessage -t "What are you doing?" --c +enter "Get back to work!")); } } sleep 300; }
--ZZamboni
Update: fixed typo: s/spend/spent/
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Keep myself off PerlMonks
by t0mas (Priest) on Jun 15, 2001 at 16:33 UTC | |
Re: Keep myself off PerlMonks
by xphase_work (Pilgrim) on Jun 15, 2001 at 00:40 UTC | |
Re: Keep myself off PerlMonks
by Beatnik (Parson) on Jun 15, 2001 at 01:20 UTC |