- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- log file generation problems
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 12:51 AM
04-05-2004 12:51 AM
I have written a script that I am referencing via cron.
The cron entry is as follows :
46 13 * * 1 /interfaces/EMP/LV/out/loadftpextract.sh test* /app/ffe/ffeprod/bulkload > loadftpextract.log.$(date +%d%m%Y)
The script works fine, the only thing that I am having problems with is the redirect file at the end of the command line. The log file is not being created with a date suffix, All I am getting is loadftpextract.log. each time.
Running :
loadftpextract.sh test* /app/ffe/ffeprod/bulkload > loadftpextract.log.$(date +%d%m%Y)
manually at the command line works fine, and generates the log correctly.
the only thing I have tried is changing the shell reference at the start of the script from posix to korn, but no luck
any ideas?
many thanks in advance
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 12:58 AM
04-05-2004 12:58 AM
Re: log file generation problems
Try it with quotes,
46 13 * * 1 /interfaces/EMP/LV/out/loadftpextract.sh test* /app/ffe/ffeprod/bulkload > "/path/loadftpextract.log.$(date +%d%m%Y)"
Hope thsi helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 01:12 AM
04-05-2004 01:12 AM
Re: log file generation problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 01:22 AM
04-05-2004 01:22 AM
Re: log file generation problems
no luck unfortunately
thanks for the reply!
cheers
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 01:27 AM
04-05-2004 01:27 AM
Re: log file generation problems
cron can't find date command.
46 13 * * 1 /interfaces/EMP/LV/out/loadftpextract.sh test* /app/ffe/ffeprod/bulkload > "/path/loadftpextract.log.$(/usr/bin/date +%d%m%Y)"
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 01:32 AM
04-05-2004 01:32 AM
Solution57 18 * * * /var/home/sks/junk1>"/var/home/sks/load.log.`date +\%d\%m\%Y`"
59 18 * * * /var/home/sks/junk1>/var/home/sks/load.log.$(date +\%d\%m\%Y)
Need to escape % sign.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2004 01:45 AM
04-05-2004 01:45 AM
Re: log file generation problems
much appreciated!!!!
thanks for taking the time
John