Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-15-2009, 10:18 PM
|
#1
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Rep:
|
Crontab command won't broadcast
Hello, i'm having trouble running my command with crontab, on Red hat 8 by the way.As root, after doing crontab -e, i've entered a command to broadcast the date in 12 hours format ever 30 minutes, so i did */30 * * * * date +%r | wall. But it doesn't do anything, i think it has to do with the +%r part, it's like it doesn't recognize it. Any tips? Thanks.
|
|
|
11-15-2009, 11:03 PM
|
#2
|
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Rep: 
|
First, it would be easy to test your theory. Just remove the formatting for a trial run to see if sends a regular date(1) message.
Second, Red Hat 8...? It's ancient, unsupported history. Time to upgrade. Some possibilities: RHEL, CentOS, Fedora.
|
|
|
11-15-2009, 11:27 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
I saw a very similar problem just the other day (colcucix pointed out the solution to
the original poster of the other thread - good reading). Your problem is cron; read
the man page. It's trying to interpret the %. To avoid that you need to escape
it with a \.
Cheers,
Tink
|
|
|
11-16-2009, 05:33 PM
|
#4
|
LQ Newbie
Registered: Nov 2009
Posts: 2
Original Poster
Rep:
|
Thank you so much Tinkster, i got it. :P
|
|
|
All times are GMT -5. The time now is 12:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|