- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- DP post-exec script times out
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
Discussions
Discussions
Forums
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
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
тАО01-28-2015 01:13 PM
тАО01-28-2015 01:13 PM
Greetings. I believe this is a script issue - not data protector issue. I have a post exec script (ksh) I have used for a few years that now has to run remotely rather than locally (on the cell manager). The script runs 5 other scripts. All the scripts start what they are supposed to - but DP waits for 30 minutes and reports failure (due to timeout in the script). The last 3 lines of the main script are below. The two emails are sent but it sits there for 30 minutes - then times out. Any ideas on finding out what the hangup is? Could one of the child scripts cause the issue? How could I find out which one?
echo "$subject" | /usr/bin/mailx -s "PROD BACKUP IS COMPLETE" <emailaddress>
echo "$subject" | /usr/bin/mailx -s "PROD BACKUP IS COMPLETE" <emailaddress>
exit 0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2015 12:52 AM
тАО01-29-2015 12:52 AM
Re: DP post-exec script times out
>All the scripts start what they are supposed to
So you know you got to the last mailx? (Any reason you don't use mailx with both addresses?)
Are you starting any background processes (with &)?
I suppose you could use tusc to check and see what ksh is waiting for.
>post exec script
Are you redirecting stdin to /dev/null?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2015 06:51 AM
тАО01-29-2015 06:51 AM
Re: DP post-exec script times out
there are only four scripts - the 2nd,3rd, and 4th are run with &. These are running on itanium (hpux 11.31). One strange thing - when I run the same script on a PA-RISC test system (also hpux 11.31) it completes (with a DP test backup).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2015 09:20 AM
тАО01-29-2015 09:20 AM
Re: DP post-exec script times out
I di notice that the inet process was still running from the backup, and the log file did not exist. I created the file and one of the child processes was still sending output. We think the script that may still be sending output is:
su - clr -c "/u12/software/jboss/jboss-4.0.1sp1/bin/run_jboss.sh >/dev/null 2>&1"
Is there another way to have this run without returning output to the shell?
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2015 12:09 PM
тАО01-29-2015 12:09 PM
Re: DP post-exec script times out
>Is there another way to have this run without returning output to the shell?
There's nohup(1).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-29-2015 12:35 PM
тАО01-29-2015 12:35 PM
Re: DP post-exec script times out
the script that might be hanging does a nohup in it:
nohup java $VM_ARGS -classpath $CP com.clearorbit.rfuiServer.Engine -telnet $PORT -admin $ADMI N_PORT -program $PROGRAM $RFUI_ARGS 1>/home/clr/dtel.log &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2015 01:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2015 07:15 AM
тАО02-10-2015 07:15 AM
Re: DP post-exec script times out
Doing the >/dev/null >2>&1 in the postexec script has fixed the problem. thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2015 11:55 AM
тАО02-10-2015 11:55 AM
Re: DP post-exec script times out
> fixed the problem. thanks
If you're happy with the answers, please also assign Kudos.