- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron Job Issue
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
тАО02-23-2010 05:03 AM
тАО02-23-2010 05:03 AM
Re: Cron Job Issue
Not good enough...
As the user you are running "manually" the script and it is working, do
set
and copy PATH line
Then open your script and past the line there (delete this line)
I believe the only problem is with gzip but just to be sure, add the correct PATH variable as above.
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 05:06 AM
тАО02-23-2010 05:06 AM
Re: Cron Job Issue
I assume it is an IP address, not some variable?
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 05:06 AM
тАО02-23-2010 05:06 AM
Re: Cron Job Issue
set pathname
and than try
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 05:28 AM
тАО02-23-2010 05:28 AM
Re: Cron Job Issue
>>IP address<< as per IP attachment have exculded, becoz its confidential ..?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 08:58 PM
тАО02-23-2010 08:58 PM
Re: Cron Job Issue
I removed IP & server name from the script and uploaded to ITRC :)
If I set a path using set command, will it update the existing path configuration? It is production host. Thats why i would like to reconfirm with you guys.
Thanks in Advance
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 09:37 PM
тАО02-23-2010 09:37 PM
Re: Cron Job Issue
can we redirect to a log file to capture the output of your script while execution in crontab.
so that we will all know what causing the actual problem. Guess we are all shooting in the dark room.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 09:44 PM
тАО02-23-2010 09:44 PM
Re: Cron Job Issue
I tried with that option...find the log output
#cat /tmp/log.out
Waiting until tar is complete ...
Tar completed successfully
Waiting until gzip is complete ...
Gzip completed successfully
tar & zip is completed with 0 bytes.. if i run manually at same time, some files exists in zip.
Kindly clarify on this
Thanks in Advance
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 09:55 PM
тАО02-23-2010 09:55 PM
Re: Cron Job Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 10:05 PM
тАО02-23-2010 10:05 PM
Re: Cron Job Issue
>As the user you are running "manually" the script and it is working, do
set
and copy PATH line into your SCRIPT.
Please re-attach the modified script here.
Horia
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-23-2010 10:05 PM
тАО02-23-2010 10:05 PM
Re: Cron Job Issue
Waiting until tar is complete ...
Tar completed successfully
Waiting until gzip is complete ...
Gzip completed successfully<<<
as long as i see from above. time taken "tar" is too short. and between you can "use " sleep command optins
man sleep
"sleep - suspend execution for an interval"