]> git.lizzy.rs Git - plan9front.git/commit
cwfs: make /srv/cwfs.cmd redable to receive command output
authorcinap_lenrek <cinap_lenrek@gmx.de>
Fri, 13 Jul 2012 13:09:39 +0000 (15:09 +0200)
committercinap_lenrek <cinap_lenrek@gmx.de>
Fri, 13 Jul 2012 13:09:39 +0000 (15:09 +0200)
commit8e11ff283f1e7c36b23e6e52c2ab0ca12a7713f9
tree21ae354f7121d196046b6b9c36a18232afb38e43
parent53f5bdfd06cce8093de005b8d706b752d3567cfa
cwfs: make /srv/cwfs.cmd redable to receive command output

before, cwfs would print everything to /dev/cons. this change
will redirect the output of commands to the /srv/cwfs.cmd pipe
so one can use:

con -C /srv/cwfs.cmd

and not have the fish for the output in /dev/kmesg.

use standard error (/dev/cons) for unsolicited messages as
there is not always a reader on the command file.
18 files changed:
sys/src/cmd/cwfs/9p1.c
sys/src/cmd/cwfs/9p1lib.c
sys/src/cmd/cwfs/9p2.c
sys/src/cmd/cwfs/chk.c
sys/src/cmd/cwfs/con.c
sys/src/cmd/cwfs/console.c
sys/src/cmd/cwfs/cw.c
sys/src/cmd/cwfs/dentry.c
sys/src/cmd/cwfs/fworm.c
sys/src/cmd/cwfs/iobuf.c
sys/src/cmd/cwfs/juke.c
sys/src/cmd/cwfs/main.c
sys/src/cmd/cwfs/mworm.c
sys/src/cmd/cwfs/net.c
sys/src/cmd/cwfs/portfns.h
sys/src/cmd/cwfs/scsi.c
sys/src/cmd/cwfs/srv.c
sys/src/cmd/cwfs/sub.c