HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Strange behaviour of cron
Operating System - HP-UX
1832207
Members
2604
Online
110040
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
07-13-2006 08:07 PM
07-13-2006 08:07 PM
Hi!
I am really confused with a problem that I have now. I have a perl script, that opens a file and writes something in there. I run the script as user oracle from the command line and everything works fine. But when I do the same command from cron, for the same user, I get error message "Permission denied" when it tries to open the file to write. I tried changing permissions and so on, but no change, works from command line, does not work from cron. What is wrong here?
Thank you!
I am really confused with a problem that I have now. I have a perl script, that opens a file and writes something in there. I run the script as user oracle from the command line and everything works fine. But when I do the same command from cron, for the same user, I get error message "Permission denied" when it tries to open the file to write. I tried changing permissions and so on, but no change, works from command line, does not work from cron. What is wrong here?
Thank you!
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 08:15 PM
07-13-2006 08:15 PM
Solution
Kalin,
who is the cronjob running as?
If it is the oracle user, please remember that cron does not use the login file, so your environment is going to be different.
Please ensure you specify all variable you need within your script. For example $ORACLE_HOME would not be know, unless specified within the script. So you may write to $ORACLE_HOME/test but that translates into /test !
who is the cronjob running as?
If it is the oracle user, please remember that cron does not use the login file, so your environment is going to be different.
Please ensure you specify all variable you need within your script. For example $ORACLE_HOME would not be know, unless specified within the script. So you may write to $ORACLE_HOME/test but that translates into /test !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 08:19 PM
07-13-2006 08:19 PM
Re: Strange behaviour of cron
Thank you, Peter, you were on the right way. When I changed the path to the file to absolute path, it worked properly.
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP