- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Use of special file
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
11-30-2001 08:24 AM
11-30-2001 08:24 AM
Use of special file
Tivoli software creates a special file in /tmp directory. It's a pipe. Can any one explain me how to create special files and what is the use of them.
Thanks
Venkat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 08:29 AM
11-30-2001 08:29 AM
Re: Use of special file
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 08:30 AM
11-30-2001 08:30 AM
Re: Use of special file
Somebody else may be able to better explain exactly how Tivoli uses them.
Cheers,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 08:32 AM
11-30-2001 08:32 AM
Re: Use of special file
For your purpose, it simply becomes a file that non-related (or related processes for that matter) can read from and write to.
e.g. Process 1: ls -l /etc > /tmp/mypipe
Process 2: myproc < /tmp/mypipe
Process 2 reads from the named pipe just as though it had been typed in from the keyboard i.e. the pipe became its stdin.
One way to think of named pipes is simply as a mailbox where processes can drop off and pick up data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2001 12:40 PM
11-30-2001 12:40 PM
Re: Use of special file
on HP-UX (as on most UN*Xes) we have (based on the output of 'll'):
- files
d directories
p named pipes
b block devices (think of disks)
c character devices (every device else)
l symbolic links
s sockets
The types "b" and "c" can only be created by super-users, all the others can be created by ordinary users (with the proper commands, of course).
A file can be read as often as you want, but the contents of a pipe cann only be read once and are gone then!
Named pipes are useful to *connect* two processes of different users, since *anonymous pipes* (i.e. '|') can only connect two processes started by the same parent process and hence user.
HTH,
Wodisc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2001 04:37 AM
12-01-2001 04:37 AM
Re: Use of special file
The first character in the permissions will be 'p' for a pipe.
Also, 'file
