tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* named pipes
@ 1995-06-26 18:22 Steve Swinnea
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Swinnea @ 1995-06-26 18:22 UTC (permalink / raw)
  To: tru64-unix-managers


I've been working with a program suite that sets up a named pipe
(/var/spool/ppr/PIPE).  I abandoned the pipe mechanism in libc.a in
favor on the one in libsrv4.a.  The program works now except when I
kill it the pipe remains.  If I try rm, I get the message "Device
busy".  The problem is that I can't restart the program at this point
because the program can no longer open a pipe with the old one there.
Rebooting clears the p flag on the file and then the program can be
restarted.  Anyone have any ideas?

Steve Swinnea
swinnea@che.utexas.edu
Department of Chemical Engineering
The University of Texas at Austin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* named pipes
@ 1995-06-30 13:31 Steve Swinnea
  0 siblings, 0 replies; 4+ messages in thread
From: Steve Swinnea @ 1995-06-30 13:31 UTC (permalink / raw)
  To: tru64-unix-managers


I asked recently about removing svr4 named pipes from the filesystem
once processes were through using them.  "rm PIPE" didn't work.

My original message:
    I've been working with a program suite that sets up a named pipe
    (/var/spool/ppr/PIPE).  I abandoned the pipe mechanism in libc.a in
    favor on the one in libsrv4.a.  The program works now except when I
    kill it the pipe remains.  If I try rm, I get the message "Device
    busy".  The problem is that I can't restart the program at this point
    because the program can no longer open a pipe with the old one there.
    Rebooting clears the p flag on the file and then the program can be
    restarted.

Jim Wright <jwright@phy.ucsf.edu> wrote:
    this is an ugly answer, but in case you don't get any 
    prettier ones...

    % program
    % kill <program>
    % mv PIPE PIPE.1
    % mknod p PIPE
    % program
    % kill <program>
    % mv PIPE PIPE.2
    etc...

    then on reboot, have it "rm /var/spool/ppr/PIPE.*" to clean up.


ron menner <rtm@zk3.dec.com> wrote: 
    i'm sorry to say that you have to do an umount on the named
    pipe before rm will work.  Again my sincere apolgies for
    this behaviour.


This occurred to me shortly after I posted the message.  I did a
df and it complained about the filesystem /var/spool/ppr/PIPE.  I
suppose having to use the FFS option in the kernel should have
given me a clue. Oh, well it works.  :(

Steve Swinnea
swinnea@che.utexas.edu
Department of Chemical Engineering
The University of Texas at Austin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* named pipes
@ 1998-08-24 14:33 Ed Lewis
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Lewis @ 1998-08-24 14:33 UTC (permalink / raw)
  To: tru64-unix-managers


>    Hi,
> 	I need some help with a named pipes problem I am having.
> 	The script I've enclosed uses named pipes to do an export
> 	of a Oracle database. The command will do compression
> 	as it exports.
> 	The command works fine if the database is available. 
> 	The problem is when the database is not available, the commands
> 	that remove the named pipes ( rm -f ) do not execute, and
> 	the "compress" and "cat" commands will not be cleaned up.
> 	Is there some error trapping I can use to make this work ?
> 	Your help is appreciated.
> 			thanks.
> 						ed lewis
> 
> mkfifo /tmp/pipe
> mkfifo /tmp/pipe_logs
> 
> cat /tmp/pipe | compress > /ora_exports/data/exp_fulld_lxop.data.Z
> &
> cat /tmp/pipe_logs | compress > /ora_exports/data/exp_fulld_lxop.log.Z
> &
> 
> exp parfile=/ora_exports/parfiles/exp_full
> 
> rm -f /tmp/pipe
> rm -f /tmp/pipe_logs
> 
> 
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* named pipes
@ 1998-08-24 14:36 Ed Lewis
  0 siblings, 0 replies; 4+ messages in thread
From: Ed Lewis @ 1998-08-24 14:36 UTC (permalink / raw)
  To: tru64-unix-managers


  Hi,
	I need some help with a named pipes problem I am having.
	The script I've enclosed uses named pipes to do an export
	of a Oracle database. The command will do compression
	as it exports.
	The command works fine if the database is available. 
	The problem is when the database is not available, the commands
	that remove the named pipes ( rm -f ) do not execute, and
	the "compress" and "cat" commands will not be cleaned up.
	Is there some error trapping I can use to make this work ?
	Your help is appreciated.
			thanks.
						ed lewis
mkfifo /tmp/pipe
mkfifo /tmp/pipe_logs

cat /tmp/pipe | compress > /ora_exports/data/exp_fulld_lxop.data.Z     &
cat /tmp/pipe_logs | compress > /ora_exports/data/exp_fulld_lxop.log.Z &

exp parfile=/ora_exports/parfiles/exp_full

rm -f /tmp/pipe
rm -f /tmp/pipe_logs



	
Edward Lewis
RBMG
803-741-3200
elewis@rbmg.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-08-24 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-26 18:22 named pipes Steve Swinnea
  -- strict thread matches above, loose matches on Subject: below --
1995-06-30 13:31 Steve Swinnea
1998-08-24 14:33 Ed Lewis
1998-08-24 14:36 Ed Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox