- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: su from cron
Operating System - HP-UX
1752777
Members
5977
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО06-14-2011 05:31 AM
тАО06-14-2011 05:31 AM
Re: su from cron
Hi (again):
> Right now only root user has cron and because of service guard they just want one crontab to maintain... Small IT group.
Regardless, would you humor us and try running as a crontask of 'wmsusr' (without the need to 'su')?
> Hostname is a bad var name but I don't see how it causes the problem
Of course not. I merely was pointing out that when you ask someone to look at your code, it always helps to have used *meaningful* variable names. You wouldn't show me an orange and tell me that the apple you have is rotten, would you?
Regards!
...JRF...
> Right now only root user has cron and because of service guard they just want one crontab to maintain... Small IT group.
Regardless, would you humor us and try running as a crontask of 'wmsusr' (without the need to 'su')?
> Hostname is a bad var name but I don't see how it causes the problem
Of course not. I merely was pointing out that when you ask someone to look at your code, it always helps to have used *meaningful* variable names. You wouldn't show me an orange and tell me that the apple you have is rotten, would you?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2011 09:58 AM
тАО06-14-2011 09:58 AM
Re: su from cron
what is the result, if you do not invoking a login shell? i.e.
50 * * * * "su wmsusr -c /wms/app/zabbix/check_zabbix.sh"
50 * * * * "su wmsusr -c /wms/app/zabbix/check_zabbix.sh"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2011 11:13 AM
тАО06-14-2011 11:13 AM
Re: su from cron
Hi All... I just moved the su into the script and it is fine now...
echo 4
su - wmsusr -c "/wms/app/zabbix/zabbix_agentd -c /wms/app/zabbix/zabbix_agentd.conf"
echo 5
echo 4
su - wmsusr -c "/wms/app/zabbix/zabbix_agentd -c /wms/app/zabbix/zabbix_agentd.conf"
echo 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2011 11:15 AM
тАО06-14-2011 11:15 AM
Re: su from cron
See above, opps.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP