LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-13-2005, 07:12 AM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
cronjob and xmessage


I want to have the following line in root's crontab so that the message appears on any users desktop ..... but it doesn't work ie nothing is displayed. Other cronjobs are working.

20 11 * * * xmessage -center -timeout 3 This computer will disconnect from the Internet in FIVE minutes

I have tried all sorts of variations (found on LQ) but the message never displays. I have tried the message in both single and double quotes. I have tried /usr/X11R6/bin/xmessage. I have tried -display:0 and -display :0.0 ..... <<< what am I doing wrong?

Thanks
 
Old 09-13-2005, 04:29 PM   #2
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
So. To start a piece of software in an xterm I type "name of prog"...xmessage is no different except in that instructions have to be given to it ie xmessage <my message here> ... does this make a difference to the syntax of a cronjob?
 
Old 09-13-2005, 05:31 PM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
right.
Can anybody test this in a crontab for me?

<you specify when> * * * xmessage test

Thanks
 
Old 09-14-2005, 04:25 AM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Strange --- the xmessage will not work from root's crontab to user's desktop but it works from user's crontab :
20 10 * * * /usr/X11R6/bin/xmessage -display :0.0 hello
so I will have one crontab for xmessages and a root one for network shutdown etc. It seems strange to me that I can't get xmessage to run from root's crontab >>> user but I haven't got the time t "play" any longer. If anyone can guide me I would be grateful.
Cheers
PS kdialog also refuses to work from root's crontab but works from user.
 
  


Reply



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
Newline in xmessage? scottjwoodford Linux - General 2 06-09-2005 03:17 PM
xmessage on network masand Programming 0 04-09-2004 09:09 AM
xmessage vs mandrake perdesiz Linux - Software 2 09-17-2003 03:52 AM
xmessage cut and paste mlenehan Linux - General 3 06-17-2003 03:27 PM
xmessage origin zindadilfaiz Linux - Networking 2 02-19-2003 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration