- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Which status am I seeing?
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
12-18-2001 05:53 AM
12-18-2001 05:53 AM
echo $sys_id/$sys_passwd | exp parfile=$PARFILE >> ${EXP_LOG_DEST}/${EXP_LOG_FILE} 2>&1
status=$?
Then I check the value of 'status' to determine whether or not to send e-mail. So I guess my question is: Which part of the piped command am I getting the status of?
Any help is greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 05:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 05:58 AM
12-18-2001 05:58 AM
Re: Which status am I seeing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 06:01 AM
12-18-2001 06:01 AM
Re: Which status am I seeing?
The answer is that of the last command in the pipeline - exp. The problem is that many commands don't play by the rules. I know that svrmgrl and sqlplus do not; I suspect that exp does not as well. Many Oracle commands (and other applications as well) return 0 as long as they exited gracefully. You really need to examine stdout/stderr and look for patterns to do want you want.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 06:07 AM
12-18-2001 06:07 AM
Re: Which status am I seeing?
echo "XX" | grep -q "YY"
echo $?
That should be 1 - no matches found by grep
echo "XX" | grep -q "XX"
echo $?
That will return 0 - 1 or more matches found by grep