- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Questinon Crontab
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
Forums
Discussions
Discussions
Discussions
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
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
08-02-2006 07:05 AM
08-02-2006 07:05 AM
Questinon Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:08 AM
08-02-2006 07:08 AM
Re: Questinon Crontab
# crontab -e
to edit
Make sure
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:10 AM
08-02-2006 07:10 AM
Re: Questinon Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:30 AM
08-02-2006 07:30 AM
Re: Questinon Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:33 AM
08-02-2006 07:33 AM
Re: Questinon Crontab
No. You need to set these environmental variables in the shell script you have cron'ed.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:42 AM
08-02-2006 07:42 AM
Re: Questinon Crontab
#!/usr/bin/sh
export PATH=${PATH}:/usr/local/bin
export SHLIB_PATH=/usr/local/lib:/usr/lib
...
...
# your commands start here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 07:55 AM
08-02-2006 07:55 AM
Re: Questinon Crontab
cron has no environment other than what you set.
If it works in the regular command environment and not in cron, you need to set up the necessary environment, PATH, SHLIB_PATH etc.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 08:00 AM
08-02-2006 08:00 AM
Re: Questinon Crontab
"
I tried this before with no success. Your suggestions are greatly welcome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 08:31 AM
08-02-2006 08:31 AM
Re: Questinon Crontab
export PATH = ... and
export LD_LIBRARY_PATH = ...
I had do something like
PATH=$PATH/usr/local/bin and
LD_LIBRARY_PATH=/usr/local/lib.
I have another doubt with regards to Cron, Is it possible to run two scripts separated by comma something like
Cron - "* * * * *
Once again thanks for the timely help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 09:00 AM
08-02-2006 09:00 AM
Re: Questinon Crontab
Anway, with Solaris you may have to use CSH syntax in your script.
setenv PATH /usr/bin:/usr/local/bin/:whatever
setenv LD_LIBRARY_PATH /usr/lib:whatever
To your last question -- Yes you can run scripts in the fashion you mention with the script names separated by a semi-colon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 09:03 AM
08-02-2006 09:03 AM
Re: Questinon Crontab
If you don't feel confident that you can whack yourself hard enough then find a colleague because serious adjustment is needed.