Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
> I have a problem with crontab entry
post Mar 29 2011, 01:26 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 29-March 11
Member No.: 15,195

I have a problem with crontab entry

Here is what I have

0,5 * * * * echo The time is 'date' >> /root/filename

I need the current date and time to go to the file.

I get this when I do cat /root/filename

The time is date

Go to the top of the page
+Quote Post
Start new topic
post Mar 29 2011, 08:17 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,807
Joined: 23-January 03
Member No.: 360

Its all about how to execute commands in bash. Lots of help can be found by googling. The correct syntax is $( command )
However the old ways is using bacticks i.e. the key next to Esc .
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 18th July 2018 - 05:23 PM