- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Shell commands
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
11-28-2005 02:28 AM
11-28-2005 02:28 AM
Shell commands
We recently migrated an UNIX/Oracle app to a bigger more powerful alpha server.
The databses was imported and the home/app owner/ directory tarred and untarred. This contains all the profiles and s/w for the app.
A script which uses 'which' to confirm a ksh scripts location, and which runs in the live copied from environment, fails when run by the application.
cutting the commadn from the log and manually running the ksh script succeeds as does runnning the which comman form the commadn line.
Any ideas.
PS we have checked the environment, passwd file - no dif between the original env and the migration env.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:00 AM
11-28-2005 05:00 AM
Re: Shell commands
Use cat -e to verify that there are no non-printable characters and new lines that may be causing problems with the script.
Ensure that the path to the shell specified in the very first like of the shell is correct.
Ensure that the PATH variable is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 07:27 PM
11-28-2005 07:27 PM
Re: Shell commands
It's likely that some of the protections are not the same. Which searches your PATH to find executables. If the transferred files are not executable, which won't find them. Also note that the Oracle binary normally has a sticky bit which may not have transferred correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 06:07 AM
11-29-2005 06:07 AM
Re: Shell commands
A little bit more has come to light.
It appears that the job is run by a management daemon which either doesnot set the SHELLvariable to /usr/bin/ksh or unsets the same.
Step 007 LOG + /usr/bin/which BatchLoader
Step 007 LOG SHELL: Undefined variable.
the same can be generated form teh commadn line by unsetting the SHELL
has anybody suffered similar?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 06:39 AM
11-29-2005 06:39 AM
Re: Shell commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:28 PM
11-29-2005 09:28 PM
Re: Shell commands
Thanks for responding.