Plan 9 from Bell Labs’s /usr/web/sources/contrib/nemo/root/sys/src/cmd/mail2fs/Send

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

rfork ne
if (! ~ $#winid 0 && test -e /mnt/acme/$winid && test -x /acme/msgs/Send)
	exec /acme/msgs/Send $*

if (~ $#file 0){
	echo must run under omero
	exit omero
}
if (! test -r $file ){
	echo cannot read $file
	exit file
}

fname=`{awk '{print $1}' < /dev/time}

if (! test -d /mail/box/$user/out ){
	echo no /mail/box/$user/out
	exit out
}

cd /mail/box/$user/out
mv $file  $fname && echo $file spooled for delivery
exit ''


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.