LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-12-2005, 01:55 PM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
can echo be used for popups in shell scripts run by cron?


hi. here is the situation. My dentist office never calls me to remind me of my appoints so i thought i could write a simple shell script that would test the output of the date command and see if it is the day i have an appointment and remind me if the statement is true. I'd have cron run it everyday so my question is if i used echo to print something like "you have an appointment" will it pop up a terminal to print the reminder or will i have to find some way else to send the reminder?
 
Old 04-12-2005, 02:02 PM   #2
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
You could run
Code:
xterm -hold -e echo "Dentist :-("
from a script
 
Old 04-12-2005, 02:11 PM   #3
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
thanks i never would have thought about it like that.
 
Old 04-12-2005, 04:07 PM   #4
AdaHacker
Member
 
Registered: Oct 2001
Location: Brockport, NY
Distribution: Kubuntu
Posts: 384

Rep: Reputation: 31
If you want an actual message box, you could use xmessage:
Code:
xmessage 'Destist :-('
Or, if you're a KDE person, there's also the somewhat nicer looking version:
Code:
kdialog --msgbox 'Dentist :-('
Or you could just use some actual organizer software ;-)
 
Old 04-12-2005, 06:30 PM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
thanks i'll try that out as well. I'd rather try the script instead of a scheduler program because im trying to learn bash scripting anways. I like to use linux cuz i do the work myself and don't just have to click everything like in windows.
 
  


Reply


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
simple "echo > qbc" cron jobs doesn't run shole Linux - Newbie 3 09-23-2006 02:09 PM
run shell script on cron varunbihani Linux - Newbie 5 07-08-2005 01:50 AM
Can't run shell scripts even as root nitrousoxide82 Linux - Newbie 2 04-24-2005 04:47 PM
Can't run shell scripts I write? JustinCoyan Slackware 2 08-06-2004 12:50 PM
How to? Run Shell scripts jmr0311 Mandriva 2 07-14-2004 09:24 PM


All times are GMT -5. The time now is 11:01 PM.

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