- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Logrotate Problem in cron daemon
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
Discussions
Discussions
Forums
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
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
тАО05-05-2009 05:04 AM
тАО05-05-2009 05:04 AM
Logrotate Problem in cron daemon
/opt/logrotate/bin/logrotate logrotate.conf executes successfully and fulfill my target, which compressed the old logs.
but when I try to execute same command through cronjob it executes but not compressed only take the backup of old logs.
Then I execute a script through cron, where command and profile execution done.
Any one faced same type of problem before.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 05:54 AM
тАО05-05-2009 05:54 AM
Re: Logrotate Problem in cron daemon
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 05:58 AM
тАО05-05-2009 05:58 AM
Re: Logrotate Problem in cron daemon
for example, when run from the command-line as noted:
/opt/logrotate/bin/logrotate logrotate.conf
what is your current directory, and is logrotate.conf in it?
My first step would be to put the full path to logrotate.conf in the cron job and see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 06:36 AM
тАО05-05-2009 06:36 AM
Re: Logrotate Problem in cron daemon
#!/usr/bin/sh
PATH=/bin:/usr/bin:/usr/contrib/bin
/opt/logrotate/bin/logrotate /etc/logrotate.conf
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-05-2009 11:23 PM
тАО05-05-2009 11:23 PM
Re: Logrotate Problem in cron daemon
create a new script to add in crontab under teh user you run successfully online and add
. .profile
opt/logrotate/bin/logrotate logrotate.conf
to be sure that all neeede paths will be loaded.
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 12:15 AM
тАО05-07-2009 12:15 AM
Re: Logrotate Problem in cron daemon
PATH=/bin:/usr/bin:/usr/contrib/bin
solved the problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 12:17 AM
тАО05-07-2009 12:17 AM