LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cron job in Suse Linux (https://www.linuxquestions.org/questions/linux-software-2/cron-job-in-suse-linux-448508/)

excidy 05-25-2006 02:11 PM

Cron job in Suse Linux
 
Guys, I need some help

I am trying to figure out how to set up a cronjob that displays a message on the screen in KDE at a certain time(I am using SUSE 9). Does anyone know what command I can use to display a message on the screen in KDE?

Your help is greately appreciated. Thanks in advance...

chrism01 05-25-2006 07:14 PM

man wall ;-)

Marinus 05-25-2006 11:17 PM

You can create a script containing

kdialog --msgbox "Some useful text..." ;

and point cron to that script.

excidy 05-29-2006 03:56 AM

I tried, the command kdialog is not recognized by SLES 9.

ethics 05-29-2006 03:59 AM

Kalarm will do this, it can do messages, sounds etc. etc. and the times etc are quite configurable.

It won't be in the shell though

excidy 05-29-2006 04:13 AM

I need to set up a cron job that just pops a graphical message on the screen in KDE saying for example HELLO. Now setting up a cron job I figured, but the command to pop some message on the screen I still can't figure out. Kalarm will work for this purpose, but I just really want to do it the other way....

ethics 05-29-2006 04:23 AM

Quote:

Originally Posted by Marinus
kdialog --msgbox "Some useful text..." ;

and point cron to that script.

There's your answer then. You can install it via Yast i beleieve.

Code:

kdialog
on it's own gives a list of different switches.

If not you can use dialog (i was just playing around with it, pretty fun), mine seemed to open up in the shell i was running, you can prolly change that.

tredegar 05-29-2006 07:10 AM

As chrism01 said, all you need is wall

For example, you could put this in root's crontab:

01 00 * * * echo -e "\a\nHey, it's past MIDNIGHT!\nTime for BED..." | /usr/bin/wall

And all users will all get a reminder at one minute past midnight.

HTH

excidy 06-12-2006 10:32 PM

awesome thanks guys that really helps!!!!!!


All times are GMT -5. The time now is 08:05 AM.