- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ls adds a "|" to the end of a pipe
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
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
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
04-15-2013 05:52 AM
04-15-2013 05:52 AM
Hi Guys!
Facing the problem when pipe (IPC) I'm creating using open(...) method is created in the wrong way. Pipe character ('|') is being appended to the name I give.
When I run my program I get this file created:
....
prw-r----- 1 aleks cortex 0 Apr 15 14:15 832081|
while the name I use is /home/aleks/tmp/832081. I have checked the string I'm usign as a pipe name.
Here is a code snippet:
short open_for_resp( void )
{
int fd;
/* NOTE: open on a pipe with RDONLY waits until there */
/* is a writer on the other end - how convenient ! */
fprintf(stderr, "YOPT [%s]", M_fifonm);
fd = open(M_fifonm, O_RDONLY);
...
}
Output I get:
YOPT [/home/aleks/tmp/832081]
Any help would be appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2013 06:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2013 09:47 AM - edited 04-15-2013 08:23 PM
04-15-2013 09:47 AM - edited 04-15-2013 08:23 PM
Re: ls adds a "|" to the end of a pipe
>ls gives me this output to identify the pipe.
That's correct. Using "ls -F" will add a variety of chars to identify pipes, executables, directories and symlinks.
(Also your snippet didn't show the mknod(2) call.)