- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- redirecting output from crontab script
Operating System - HP-UX
1753797
Members
7291
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО11-08-2004 12:15 AM
тАО11-08-2004 12:15 AM
I am trying to create a log file from an ignite recovery script with the date appended to it with following crontab entry:
# Ignite Backup
00 06 * * 0 /root/make_net_recovery.ksh > /root/`hostname`_net_recovery.log.`dat
e "+%Y%m%d_%H%M"` 2>&1
It created a log file with the servername_net_recovery.log. but did not append the date to the end as I had hoped.
# Ignite Backup
00 06 * * 0 /root/make_net_recovery.ksh > /root/`hostname`_net_recovery.log.`dat
e "+%Y%m%d_%H%M"` 2>&1
It created a log file with the servername_net_recovery.log. but did not append the date to the end as I had hoped.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 12:24 AM
тАО11-08-2004 12:24 AM
Re: redirecting output from crontab script
Hi Mike,
May be you should put the command in a specific script :
H1=${hostname}
D1=$(date "+%Y%m%d_%H%M"}
LOGFILE=/root/$H1_net_recovery.log$D1
then your command
Alos ensure that your PATH has access to all commands.
Regards
Jean-Luc
May be you should put the command in a specific script :
H1=${hostname}
D1=$(date "+%Y%m%d_%H%M"}
LOGFILE=/root/$H1_net_recovery.log$D1
then your command
Alos ensure that your PATH has access to all commands.
Regards
Jean-Luc
fiat lux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 12:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2004 01:19 AM
тАО11-08-2004 01:19 AM
Re: redirecting output from crontab script
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP