- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- perl and ENV and cron
Operating System - HP-UX
1823759
Members
4823
Online
109664
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
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
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
тАО11-24-2006 05:23 AM
тАО11-24-2006 05:23 AM
I can get the following script to work manually, but when I run thru cron, it errors out:
Could not open /etc/application//voice/.login: No such file or directory
my $file = "/etc/application/$ENV{'ORACLE_SID'}/voice/login";
open LOGINID, "< $file" or die "Could not open $file: $!";
Could not open /etc/application//voice/.login: No such file or directory
my $file = "/etc/application/$ENV{'ORACLE_SID'}/voice/login";
open LOGINID, "< $file" or die "Could not open $file: $!";
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2006 05:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2006 05:40 AM
тАО11-24-2006 05:40 AM
Re: perl and ENV and cron
It's pretty clear that ORACLE_SID is not defined when the script is run through cron.
You may want to start submitting a simple script with just an 'env' command to see what variable are there.
Also... it's a little odd how the error message indicate '.login' while the code sample just shows 'login'. Is that a transription error or really a problem?
If it is typed wrong, then what else might be wrong?
Hein.
You may want to start submitting a simple script with just an 'env' command to see what variable are there.
Also... it's a little odd how the error message indicate '.login' while the code sample just shows 'login'. Is that a transription error or really a problem?
If it is typed wrong, then what else might be wrong?
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2006 05:49 AM
тАО11-24-2006 05:49 AM
Re: perl and ENV and cron
Your right, I have sourced the env thru the cron command first.
Works like a charm
Works like a charm
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP