LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-25-2006, 02:11 PM   #1
excidy
Member
 
Registered: Apr 2005
Location: USA
Distribution: I switch distros every day.
Posts: 32

Rep: Reputation: 15
Post 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...
 
Old 05-25-2006, 07:14 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
man wall ;-)
 
Old 05-25-2006, 11:17 PM   #3
Marinus
LQ Newbie
 
Registered: Aug 2005
Distribution: Debian Etch
Posts: 20

Rep: Reputation: 0
You can create a script containing

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

and point cron to that script.
 
Old 05-29-2006, 03:56 AM   #4
excidy
Member
 
Registered: Apr 2005
Location: USA
Distribution: I switch distros every day.
Posts: 32

Original Poster
Rep: Reputation: 15
I tried, the command kdialog is not recognized by SLES 9.
 
Old 05-29-2006, 03:59 AM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
 
Old 05-29-2006, 04:13 AM   #6
excidy
Member
 
Registered: Apr 2005
Location: USA
Distribution: I switch distros every day.
Posts: 32

Original Poster
Rep: Reputation: 15
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....
 
Old 05-29-2006, 04:23 AM   #7
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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.

Last edited by ethics; 05-29-2006 at 04:25 AM.
 
Old 05-29-2006, 07:10 AM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,017

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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
 
Old 06-12-2006, 10:32 PM   #9
excidy
Member
 
Registered: Apr 2005
Location: USA
Distribution: I switch distros every day.
Posts: 32

Original Poster
Rep: Reputation: 15
awesome thanks guys that really helps!!!!!!
 
  


Reply

Tags
cron, kde, message, suse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux-to-Linux smb copy (cron job)? bardanes Linux - General 5 10-17-2005 03:45 PM
cron job sanjith11 Linux - General 5 07-14-2004 01:06 PM
cron job ? johnyy Linux - Software 3 12-10-2003 06:00 PM
Cron job from linux box to windows box vadertech Linux - Networking 2 07-05-2003 11:22 AM
cron job? luap Linux - Software 2 03-16-2003 08:48 AM


All times are GMT -5. The time now is 07:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration