- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script inquiry
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-24-2005 11:28 AM
тАО02-24-2005 11:28 AM
script inquiry
- Tags:
- cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 11:29 AM
тАО02-24-2005 11:29 AM
Re: script inquiry
post the cron entry
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 11:41 AM
тАО02-24-2005 11:41 AM
Re: script inquiry
Most likely you need to ensure you have set full paths for any commands in the script.
cron has a very limited PATH variable setting.
Cheers
Con
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 11:45 AM
тАО02-24-2005 11:45 AM
Re: script inquiry
It may be a problem with PATH environment variable which is not sourced in the script during cron execution. Define your PATH environment variable in script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 01:43 PM
тАО02-24-2005 01:43 PM
Re: script inquiry
herewith is the cron entry:
0 16 * * * /test/parset/scripts/parset
Attached is the script i've made:
- Tags:
- missing attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 01:55 PM
тАО02-24-2005 01:55 PM
Re: script inquiry
I also see in my directory a file #parset# along with the my script parset. what do you mean by this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 08:15 PM
тАО02-24-2005 08:15 PM
Re: script inquiry
cat /test/parset/scripts/parset
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2005 08:46 PM
тАО02-24-2005 08:46 PM
Re: script inquiry
Try this for a cron entry:
0 16 * * * . /path/to/homedir/.profile;/test/parset/scripts/parset
Don't miss out the dot & space before the first command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 03:27 PM
тАО02-27-2005 03:27 PM
Re: script inquiry
Please see attached script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2005 03:47 PM
тАО02-27-2005 03:47 PM
Re: script inquiry
Did you get any useful informations in cron log (/var/adm/cron/log )?
If you are able to execute in command line, then crontab informations will be the problem.
Edit your script second line as,
set -x
# To get debug symbols
Try to execute your script as,
crontab -e
* * * * *
save and check log file. post that info.
hth.