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
01-06-2005 02:58 AM
01-06-2005 02:58 AM
Cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:02 AM
01-06-2005 03:02 AM
Re: Cron
If you want to run this job as root try to do a su as the user who is allowed to run thisjob,
cron_schedule su - allowed_user -c "unidata_job_with_path"
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:03 AM
01-06-2005 03:03 AM
Re: Cron
edit the /var/adm/cron/cron.allow
su - user
crontab -e
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:04 AM
01-06-2005 03:04 AM
Re: Cron
If you want to edit a crontab entry later for this user then su - unidata,
crontab -l > unidata_cron # unloads current entries
vi unidata_cron and make your changes
crontab < unidata_cron # reload the crontab
will
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:38 AM
01-06-2005 03:38 AM
Re: Cron
the easiest way is edit crontab for another user
su - user
crontab -e
2 * * * * $PATH/script.sh
contab -l displays submitted jobs
dont forget for env setting in your script, because cron doesn't use profile
rgds Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:41 AM
01-06-2005 03:41 AM
Re: Cron
do "man crontab" to find what is neccessary for a user to run his own cron job. You can allow the user to run his own cron job and setup the cron job for that user.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 03:50 AM
01-06-2005 03:50 AM
Re: Cron
$ crontab -e
Could not connect to ToolTalk service: TT_ERR_PROCID The process id passed is not valid.
this is the error I get when tring to setup this script as a cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 04:02 AM
01-06-2005 04:02 AM
Re: Cron
Maybe this link would help you identify the cause and find a solution.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063199258
The itrc doc id is CDEKBRC00003554.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 04:06 AM
01-06-2005 04:06 AM
Re: Cron
SUDO can be very useful for this situation. Call cron as the unidata user, in the sudoers file you have the unidata user allowed to run this script as root, and the cron script makes a sudo unidata script" call.