- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- problem with su
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
04-09-2003 06:02 AM
04-09-2003 06:02 AM
problem with su
I had a problem like the following:
su informix <
if [ $? = 0 ] # problem here
then
...
fi
...
EOF
I could not get the exit code from $? for "tbstat -d" execution. Any idea will be appreciated!
Thanks and waiting for your reply.
cg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:08 AM
04-09-2003 06:08 AM
Re: problem with su
but are you sure that tbstat is executed? su without - don't read you eviroment (PATH for example)
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:15 AM
04-09-2003 06:15 AM
Re: problem with su
Try adding - between su and oracle.
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:15 AM
04-09-2003 06:15 AM
Re: problem with su
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:32 AM
04-09-2003 06:32 AM
Re: problem with su
SU to Informix and execute the command using the full PATH, then do an echo $? this will give you the exit status.
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 06:45 AM
04-09-2003 06:45 AM
Re: problem with su
It is not PATH issue, I executed the .profile before the tbstat(sorry didn't mention that in the ex.) and I also checked if it was actually executed, it did.
Anyway I tried your suggestion, didn't work.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 07:03 AM
04-09-2003 07:03 AM
Re: problem with su
I don't know informix, so tbstat in not a script corret?
you can use a workaround send the tbstat result on a file and check if it exist.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 07:30 AM
04-09-2003 07:30 AM
Re: problem with su
I don't know much about informix, can you tell me what tbstat does? Is this similar to onstat? Are you supposed to get any output like OFFLINE / ONLINE?
DR