The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-30-2008
Zak Zak is offline
Registered User
 

Join Date: Mar 2005
Posts: 29
Changing timestamp file in crontab

Hi All

I want to change the date timestamp for the log file but to do it within crontab

I've tried the following..

40 11 * * * /data/dart/dc65.1/bin/adstats.sh > /data/dart/dc65.1/bin/adstats_`date'+%d:%m-%H.%M.%S'`.log 2>&1

But I only get adstats_

Any ideas?

Thanking you all inadvance...
Reply With Quote
Forum Sponsor