Re: crontab file: echo "test"



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
.



Relevant Pages

  • Re: [kde] different resolutions in virtual desktop
    ... The problem is that I have a resolution of 1440x900 60hz in my monitor ... can change the resolution from a bash script? ... My script is a bit more complex, using a few more of the xrandr features, ...
    (KDE)
  • Re: Registry Change to 6 services_denied
    ... REM Scripting RunAs Example. ... echo Password> pwd.txt ... You avoid handing out admin credentials to everyone on your network and accomplish similar goals. ... any way to accomplish this with logon/logoff script. ...
    (microsoft.public.windows.server.scripting)
  • Re: crontab file: echo "test"
    ... printed to my monitor. ... How do I accomplish this? ... will echo to the virtual console that you switch to with ctrl-alt-Fn. ... you need the cron task running. ...
    (alt.os.linux.suse)
  • crontab file: echo "test"
    ... In my crontab file, ... echo "test" ... printed to my monitor. ... How do I accomplish this? ...
    (alt.os.linux.suse)
  • Re: [Full-disclosure] reduction of brute force login attempts via SSHthrough iptables --
    ... Anyhow its no problem at all to modify, so if you dont like it, just dont use it. ... on a lame script like this as long as it WORKS and is not insecure. ... echo "~ sorting out ip by ip" ... # echo "not enough failed logins, probably no attack from: ...
    (Full-Disclosure)