- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cronjob not workin for non-root user
Operating System - HP-UX
1753924
Members
9553
Online
108810
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
тАО01-07-2011 01:31 AM
тАО01-07-2011 01:31 AM
Re: cronjob not workin for non-root user
Can you see the cron daemon is running ?
# ps -ef |grep cron
# ps -ef |grep cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-07-2011 08:24 AM
тАО01-07-2011 08:24 AM
Re: cronjob not workin for non-root user
Did you make sure that your script has everything it needs within it to run via cron?
Remember, when you're running from cron it needs all the environment made available.
When you're running from command line, you are logged in and have your environment running for you.
Just a thought,
Rita
Remember, when you're running from cron it needs all the environment made available.
When you're running from command line, you are logged in and have your environment running for you.
Just a thought,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-08-2011 04:41 AM
тАО01-08-2011 04:41 AM
Re: cronjob not workin for non-root user
Hello,
1) firstly you need to check whether your job is invoked by cron or not
# /var/adm/cron/log
....
> CMD: your crontab line
> username 2910 c time of job in cron
& check /var/adm/cron/cron.allow file
2) Give a look on permissions and environment of the file(s)
3)Restart cron & check
/sbin/init.d/cron stop
/sbin/init.d/cron start
# ps -ef |grep cron
5)
--------
my cronjob for non-root user was working fine before the restart of the server but after the restart cronjob for non-root user is not working.
--------
if nothing changed prior to reboot then probably environment variable or you may cross check syntax in crontab -l & crontab -e ( edit)issue. As you said you are able to run it mannually
HTH
Regards,
INH
1) firstly you need to check whether your job is invoked by cron or not
# /var/adm/cron/log
....
> CMD: your crontab line
> username 2910 c time of job in cron
& check /var/adm/cron/cron.allow file
2) Give a look on permissions and environment of the file(s)
3)Restart cron & check
/sbin/init.d/cron stop
/sbin/init.d/cron start
# ps -ef |grep cron
5)
--------
my cronjob for non-root user was working fine before the restart of the server but after the restart cronjob for non-root user is not working.
--------
if nothing changed prior to reboot then probably environment variable or you may cross check syntax in crontab -l & crontab -e ( edit)issue. As you said you are able to run it mannually
HTH
Regards,
INH
Knowledge is power
- « 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