Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch execution and mkfifo

Status
Not open for further replies.

woche

Programmer
Jan 16, 2002
25
CH
hi

i'm trying to set up a named pipe, stuff in some commands and - from another programm - execute the commands in the pipe. i thought, that after execution of the pipe, the pipe itself would die (disappear) - but mine doesn't:

<< program 1 >>
mkfifo MYPIPE
'ps -ef' > MYPIPE &

...some time later
<< program 2>>
cat MYPIPE

-> this returns me the output of ps -ef but MYPIPE remains in the directory.

what am i doing wrong?

thx!
woche

p.s.: all of this is on aix 4.3
 
Hi:

I've never heard of a named pipe disappearing on it own. I think you need to delete it - probably after you're done reading it in program2.

Regards,


Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top