After adding the -display, the xterm comes out!
In fact I am trying to make a simple alarm which will popup a window and beep the pc speaker, just reminding me to take a rest every one hour. But I failed many times. At first I tried to use a perl scrit like this: ######################### #!/usr/bin/perl -w use strict; my $interval = 3;
while(1) { sleep($interval); print 'time is up take a restn'; system('echo -e \a'

; # print chr(7); ########################## It works well but the problem is that if I close the console from which I run the script, it won't work any more. Then I tried to use crontab. Now I can popup the window. But I still can't beep. I know two way to beep in script as follows, but they don't work in crontab. way 1: $ xkbbell (X only) way 2: $ echo -e \a
What should I do?
Thank you in advance.
Jun Ge