HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Monitoring Stdout
Operating System - HP-UX
1827288
Members
3794
Online
109717
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
08-14-2003 12:14 PM
08-14-2003 12:14 PM
Monitoring Stdout
I am trying to figure out a way to monitor stdout. I have several C and Perl apps running together on an 11i machine and I am getting some inconsistant behavior and I suspect it may be due to stdout sharing between the 2 progs.
Can anyone tell me how to monitor stdout?
-Scott
Can anyone tell me how to monitor stdout?
-Scott
Keep it Simple!~
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 12:25 PM
08-14-2003 12:25 PM
Re: Monitoring Stdout
does re direction to file not work when you call the scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2003 10:19 PM
08-14-2003 10:19 PM
Re: Monitoring Stdout
How are the processes communicating with one another?
Is one writing to stdout what the other is reading from its stdin?
What do your pipes look like?
Sometimes buffering is getting in the way and mangling the correct sequence of communication (a common issue in IPC).
I cannot tell what to do in C.
I
n Perl it is advisable to enforce autoflushing in your Perl code by defining the special variable "$|".
Usual Perl idioms to this end are:
$|++;
# or
$| = 1;
# or if you have to flush other file handles
select((select(HANDLE), $|++)[0]);
If you don't mind importing some other code you could also use the IO::Handle (or IO::File, actually inheriting from IO::Handle)module that offer an autoflush method that avoids the arcane select idiom above.
Is one writing to stdout what the other is reading from its stdin?
What do your pipes look like?
Sometimes buffering is getting in the way and mangling the correct sequence of communication (a common issue in IPC).
I cannot tell what to do in C.
I
n Perl it is advisable to enforce autoflushing in your Perl code by defining the special variable "$|".
Usual Perl idioms to this end are:
$|++;
# or
$| = 1;
# or if you have to flush other file handles
select((select(HANDLE), $|++)[0]);
If you don't mind importing some other code you could also use the IO::Handle (or IO::File, actually inheriting from IO::Handle)module that offer an autoflush method that avoids the arcane select idiom above.
Madness, thy name is system administration
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP