- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Yet another scripting problem...
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
тАО07-22-2002 12:16 PM
тАО07-22-2002 12:16 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:20 PM
тАО07-22-2002 12:20 PM
Re: Yet another scripting problem...
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:23 PM
тАО07-22-2002 12:23 PM
Re: Yet another scripting problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:25 PM
тАО07-22-2002 12:25 PM
Re: Yet another scripting problem...
18 16 * * * * /dba/dba/maint/collect_space_usage_data.sh > /dba/dba/log/dwdev001/collect_space_usage_data.log 2>&1
(I've been playing with the times to make it run)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:27 PM
тАО07-22-2002 12:27 PM
Re: Yet another scripting problem...
'cron' provides a limited environment. Usually, at the least, you need to either specify absolute paths and/or set the PATH variable to that which your cron script needs. Remember too, that other environmental variables that you normally set when you login (using your profile) are not set in the unembellished cron environment.
You might place 'set -x' and 'set -u' in your script when you run it from cron to trace and trap unset variables.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:30 PM
тАО07-22-2002 12:30 PM
Re: Yet another scripting problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:33 PM
тАО07-22-2002 12:33 PM
Re: Yet another scripting problem...
minute hour monthday month weekday command
and your cron entries ..
18 16 * * * *
has an additional "*". That is why you're getting this weird "sh:Mail.." error because root is trying to execute "Mail" command from root (/).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:37 PM
тАО07-22-2002 12:37 PM
Re: Yet another scripting problem...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2002 12:44 PM
тАО07-22-2002 12:44 PM
Re: Yet another scripting problem...
Thank you all very much.