The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 06-25-2009
Sepia Sepia is offline
Registered User
  
 

Join Date: Apr 2007
Location: England
Posts: 49
Quote:
Originally Posted by vgersh99 View Post
hm....... strange
try: sed "s/\$/,$(date)/"
No joy, still missing text.

Quote:
Originally Posted by vgersh99 View Post
'crontab' runs in Bourne shell - the '$(date)' is ksh/bash specific. Change '$(date)' to '`date`' in crontab - or write your own ksh/bash wrapper and call it from cron.
Thanks. Changed it to `date` and it is now displayed properly.

Thanks.