- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need help on shell script error.
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
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
03-08-2006 03:43 AM
03-08-2006 03:43 AM
ref_gulam.sh[204]: post_rman: not found.
Screen Shot:
[/home/ora9i/dbjob/refresh/gulam]$> sh -x ref_gulam.sh
+ INITFILE=/home/ora9i/dbjob/refresh/gulam/dump
+ export INITFILE
+ DIR=/home/ora9i/dbjob/refresh/gulam
+ export DIR
+ ORACLE_SID=aqprod
+ export ORACLE_SID
+ post_rman
ref_gulam.sh[204]: post_rman: not found.
Thanks,
Gulam.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:51 AM
03-08-2006 03:51 AM
Re: Need help on shell script error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:51 AM
03-08-2006 03:51 AM
Re: Need help on shell script error.
Is post_rman in your path ? Try to export in the PATH variable, and execute it ..
# whereis post_rman
# export PATH=$PATH:
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:51 AM
03-08-2006 03:51 AM
Re: Need help on shell script error.
The "post_rman" is a function called from within your script and looks like it's missing a space between the function name and the opening parenthesis i.e.
post_rman() {
cmds
}
OR
post_rman()
{
cmds
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 03:56 AM
03-08-2006 03:56 AM
Re: Need help on shell script error.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 04:18 AM
03-08-2006 04:18 AM
Re: Need help on shell script error.
But still the same error:
[/home/ora9i/dbjob/refresh/gulam]$> sh ref_gulam.sh
ref_gulam.sh[201]: post_rman: not found.
Thanks,
Gulam.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 05:14 AM
03-08-2006 05:14 AM
SolutionThe function "rman_main" defined right before "post_rman" is missing an EOF character. You started the here document to "rman_main" but forgot to terminate it. Add an EOF on a line by itself, just before the closing brace like:
rman_main() {
rman target / msglog $DIR/rmandb.log << EOF >$DIR/rman.log
...
}
exit;
EOF
}
cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 05:14 AM
03-08-2006 05:14 AM
Re: Need help on shell script error.
I don't get the meaning of the
run {
}
block inside of it.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 05:25 AM
03-08-2006 05:25 AM
Re: Need help on shell script error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2006 05:29 AM
03-08-2006 05:29 AM
Re: Need help on shell script error.
I grep EOF and showed me 9 instead of 10.
Again thank you very much everybody, I wasted lot of time troubleshooting this script.
You guys saved my lot of time.
Regards,
Gulam.