HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shell Script Help
Operating System - HP-UX
1835955
Members
3244
Online
110088
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
06-14-2006 09:45 AM
06-14-2006 09:45 AM
Shell Script Help
Hi,
I have write a shell script where it checks for failed concurrent programs and then if there are any failed conc programs then send an email to support@xyz.com to notify users.
Does any body have a code snippet for doing this.
I have the sql to check for failed processes....
select b.request_id,
a.user_concurrent_program_name,
b.actual_start_date,
b.oracle_process_id,
b.oracle_session_id,
b.os_process_id
from
fnd_concurrent_programs_vl a,
fnd_concurrent_requests b,
fnd_user c
where
a.concurrent_program_id=b.concurrent_program_id
and a.concurrent_program_id=46020
and b.status_code='E'
/
I have write a shell script where it checks for failed concurrent programs and then if there are any failed conc programs then send an email to support@xyz.com to notify users.
Does any body have a code snippet for doing this.
I have the sql to check for failed processes....
select b.request_id,
a.user_concurrent_program_name,
b.actual_start_date,
b.oracle_process_id,
b.oracle_session_id,
b.os_process_id
from
fnd_concurrent_programs_vl a,
fnd_concurrent_requests b,
fnd_user c
where
a.concurrent_program_id=b.concurrent_program_id
and a.concurrent_program_id=46020
and b.status_code='E'
/
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2006 11:00 AM
06-14-2006 11:00 AM
Re: Shell Script Help
Hi Ider,
There are some good Nutshell books on script programming that you should take a look at.
A few quick things that might get you started are:
Start script with:
#!/usr/bin/sh
To run the sql script do something like:
sql "command line login information here" > Output.file 2>&1 << EOF
"your sql script here
.
.
"
EOF
Now use something like grep or awk to parse the Output.file to detect the errors. You can e-mail error messages by streaming a message to mailx.
echo "my message" | mailx -s "Subject Line" support@xyz.com
Hope that helps get you started.
There are some good Nutshell books on script programming that you should take a look at.
A few quick things that might get you started are:
Start script with:
#!/usr/bin/sh
To run the sql script do something like:
sql "command line login information here" > Output.file 2>&1 << EOF
"your sql script here
.
.
"
EOF
Now use something like grep or awk to parse the Output.file to detect the errors. You can e-mail error messages by streaming a message to mailx.
echo "my message" | mailx -s "Subject Line" support@xyz.com
Hope that helps get you started.
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