LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-15-2009, 10:18 PM   #1
Jason95
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
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.
 
Old 11-15-2009, 11:03 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 11-15-2009, 11:27 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 11-16-2009, 05:33 PM   #4
Jason95
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you so much Tinkster, i got it. :P
 
  


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
Crontab - command won't execute laki47 Linux - Newbie 5 02-10-2009 03:57 AM
Can I use crontab command with sys account? xuebof Linux - Server 1 03-04-2008 12:01 PM
crontab <file> command Derrick Thatcher Linux - Software 2 03-08-2006 04:29 AM
crontab and command subst hyllplan Debian 2 01-15-2005 12:58 PM
Command to broadcast for IP? jeopardyracing Linux - Newbie 5 10-20-2004 02:47 PM


All times are GMT -5. The time now is 08:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration