- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ksh hangs when execute wait command
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
07-15-2003 10:40 AM
07-15-2003 10:40 AM
ksh hangs when execute wait command
I have a hanging problem inside a script when we execute a wait command after a sequence of background procesess.
Anyone know a bug on HP-UX 11.11, ksh and wait command ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 10:46 AM
07-15-2003 10:46 AM
Re: ksh hangs when execute wait command
It would probably be helpful if you explained the problem a bit more -- and do you know that the background process(es) have finished?.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 10:46 AM
07-15-2003 10:46 AM
Re: ksh hangs when execute wait command
the shell, and thus cannot be waited for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 10:49 AM
07-15-2003 10:49 AM
Re: ksh hangs when execute wait command
Explain more the problem,
add the script that we all could see and help
Caesar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 11:38 PM
07-15-2003 11:38 PM
Re: ksh hangs when execute wait command
the script wich i have problem is:
------------------------------
cat data1 | while read valor
do
JLSC $valor &
done
wait
------------------------------
after executing and finshing all JLSC processes the script remaing 'waiting' for.
data1 is a file with a list of files to be params of JLSC.
JLSC is a short 'C' program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2003 11:41 PM
07-15-2003 11:41 PM
Re: ksh hangs when execute wait command
sorry, i forgot a important information:
this only occurs sometimes not always !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 05:01 AM
07-16-2003 05:01 AM
Re: ksh hangs when execute wait command
how do you generate your data1 file (i.e. your filelist)?
could it be that *sometimes* there are filesnames in it with blanks (from a Samba share or so) or some other characters that make the execution problematic?
to debug you might use set -x or
just echo the command that should be exectued to a logfile.
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2003 06:19 AM
07-16-2003 06:19 AM
Re: ksh hangs when execute wait command
is actually a superset of Korn and anything that you can do in the Korn shell, you can do in the POSIX shell. It would be a good thing to know if all of child processes have finished and did they spawn any processes?