HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Switching id in script
Operating System - HP-UX
1834297
Members
2084
Online
110066
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
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
02-27-2007 06:33 AM
02-27-2007 06:33 AM
Switching id in script
Hi,
I have written the following code to allow an id which in dba group to switch to oracle id while running "checklsnr.sh" script.
The below command worked fine on Sun and Linux (Red Hat) but it doesn't seems to be working on HP-UX:
#############################################
#!/usr/bin/ksh
set -x
echo "Test Begin"
(echo touch /oracle/dba/checklsnr.sh ) | sw oracle
#############################################
Oracle id is a NoLogin id. We switch to oracle id using "sw" utility.
Here is the output when ran on HP-UX. It immediately close the connection with running the script.
########################################
+ echo Test Begin
Test Begin
+ echo touch /oracle/dba/checklsnr.sh
+ sw oracle
Switching to oracle
Closed connection.
##########################################
Any ideas why the script not able to switch to Oracle id on HP-UX?
Thanks.
I have written the following code to allow an id which in dba group to switch to oracle id while running "checklsnr.sh" script.
The below command worked fine on Sun and Linux (Red Hat) but it doesn't seems to be working on HP-UX:
#############################################
#!/usr/bin/ksh
set -x
echo "Test Begin"
(echo touch /oracle/dba/checklsnr.sh ) | sw oracle
#############################################
Oracle id is a NoLogin id. We switch to oracle id using "sw" utility.
Here is the output when ran on HP-UX. It immediately close the connection with running the script.
########################################
+ echo Test Begin
Test Begin
+ echo touch /oracle/dba/checklsnr.sh
+ sw oracle
Switching to oracle
Closed connection.
##########################################
Any ideas why the script not able to switch to Oracle id on HP-UX?
Thanks.
quest for perfections
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2007 06:39 AM
02-27-2007 06:39 AM
Re: Switching id in script
Well, sw is not a standard command. You need to examine sw (if it is a script) and trobleshoot from there.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2007 08:16 AM
02-27-2007 08:16 AM
Re: Switching id in script
Thanks for the feedback. I have decided not to pursue this solution. We might be using sudo instead.
Thanks.
Thanks.
quest for perfections
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