LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-14-2005, 09:03 AM   #1
hyllplan
Member
 
Registered: Nov 2004
Location: Stockholm, Sweden
Distribution: Debian (Sarge), Red Hat, Ubuntu, Knoppix
Posts: 99

Rep: Reputation: 15
Angry crontab & comm subst (Debian)


Hi,

Why does´nt the following line work as an crontab entry? (debian sarge):

10 15 * * * echo hello > /tmp/$(date +%F).log

nothing happens..?

This row works perfect though

10 15 * * * echo hello > /tmp/$(date).log

Seems like command substitution works, but it does not when adding a +%F
To me this seems like a bug?

Anyone?

/Johan
 
  


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
crontab and command subst hyllplan Debian 2 01-15-2005 12:58 PM
chkrootkit & rkhunter crontab Sabicas Linux - Security 1 11-27-2004 07:49 AM
Newbie Qs: Simple SSL setup 2 secure comm (& other things)? mattengland Linux - Security 3 11-11-2004 08:31 AM
/etc/crontab & environment variables gepesz Linux - Software 3 09-03-2004 01:26 AM
urpmi&club.comm lachlan Linux - Software 1 02-26-2003 03:07 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:32 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