- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- pclose hanging
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
тАО07-30-2008 09:29 AM
тАО07-30-2008 09:29 AM
pclose hanging
Since it's being used to open an ssh connection to a remote host, I suspect it might be caused by some form of network instability. There are multiple copies of this process running constantly on multiple hosts and the problem occurs quite rarely.
The code looks like this:
_popenFile = popen("ssh -q -o 'StrictHostKeyChecking no' -o 'AllowedAuthentications publickey' someRemoteHost someRemoteProcess", "r");
if (_popenFile == (FILE *)NULL)
if ((_filDes = fileno (_popenFile)) == -1)
_popenIfStream.attach (_filDes);
if (!_popenIfStream)
_popenIfStream.detach ();
pclose (_popenFile);
- Tags:
- pclose
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2008 05:58 PM
тАО07-30-2008 05:58 PM
Re: pclose hanging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 05:42 AM
тАО07-31-2008 05:42 AM
Re: pclose hanging
> is the popen failing only when ssh is involved?
If any other calls to popen are failing I'm unaware of it.
> what is the ssh version and OS version?
ssh2 3.2.0 and HP-UX 11.11
> Did u try putting remsh instead?
The popen used to use remsh until I was required to change it to ssh for security reasons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2008 10:24 AM
тАО07-31-2008 10:24 AM
Re: pclose hanging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 05:58 AM
тАО08-01-2008 05:58 AM
Re: pclose hanging
> but you may place it for testing; if thing work fine with remsh then definitly we have problems with ssh.
We have probably 150 copies of this process running 24/7 on 30 or so different servers. The problem occurs maybe once or twice a week in total. It makes it difficult to test because even if the remsh runs without error for a year in one test configuration it won't prove that the problem is solved (since each individual process runs error free for 1 to 2 years average).
> I did have a similar problem while doing scp while rcp worked fine. Now we are upgrading both ssh (from A.04.20.004 to Shell-A.04.50.021 ) well as OS( from 11.11 to 11.23)
You say you had a similar problem with scp, could you give me a bit more detail on that?
I'll look into upgrading ssh and OS versions. I doubt if I'll have any luck in convincing anyone to do the OS upgrade but the ssh should be doable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2008 07:52 AM
тАО08-01-2008 07:52 AM
Re: pclose hanging
go with this version 04.70.009 with HP-UX 11.11