Re: crontab file: echo "test"
- From: houghi <houghi@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Jul 2006 08:49:43 +0200
don wrote:
In my crontab file, I have a line with:
echo "test"
I get the results via mail. What I want is to have it
printed to my monitor. How do I accomplish this?
First what you get via mail is irrelevant and should most likely be
turned of.
First you need to have something of a popup program. You can use zenity
(Something I wrote a "radio" with once) or the like. Most likely you use
KDE, so use kdialog:
kdialog --msgbox "Hello world" 20
or
kdialog --title "Hello" --passivepopup "new world order" 1
In cron that will become very long, so the easiest is to set it in a
script that you place in e.g. ~/bin:
#!/bin/bash
kdialog --title "Hello" --passivepopup "new world order" 1
Then you place the script in crontab like so:
1 3 * * * /home/user/bin/script/ 2>&1
--
houghi
Quote correct (NL) http://www.briachons.org/art/quote/
Zitiere richtig (DE) http://www.afaik.de/usenet/faq/zitieren
Quote correctly (EN) http://www.netmeister.org/news/learn2quote.html
.
- Follow-Ups:
- Re: crontab file: echo "test"
- From: don
- Re: crontab file: echo "test"
- References:
- crontab file: echo "test"
- From: don
- crontab file: echo "test"
- Prev by Date: Re: MacBook Pro
- Next by Date: Re: video files
- Previous by thread: crontab file: echo "test"
- Next by thread: Re: crontab file: echo "test"
- Index(es):
Relevant Pages
|