Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/0922/12

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


Use "fs" as file server name.
 [rsc] --rwxrwxr-x M 191333 glenda sys 132 Sep 22 09:11 sys/lib/fax/faxgoose
	/n/sourcesdump/2005/0922/plan9/sys/lib/fax/faxgoose:1,4 - 
	/n/sourcesdump/2005/0923/plan9/sys/lib/fax/faxgoose:1,4
	  #!/bin/rc
	- 9fs emelie
	- bind /n/emelie/mail /mail
	+ 9fs fs
	+ bind -c /n/fs/mail /mail
	  exec upas/runq -t3 /mail/faxoutqueue /sys/lib/fax/faxtry < /dev/null > /dev/null >[2=1] &
 [rsc] --rwxrwxr-x M 191333 glenda sys 121 Sep 22 09:10 sys/lib/fax/faxtickle
	/n/sourcesdump/2005/0922/plan9/sys/lib/fax/faxtickle:1,4 - 
	/n/sourcesdump/2005/0923/plan9/sys/lib/fax/faxtickle:1,4
	  #!/bin/rc
	- 9fs emelie
	- bind -c /n/emelie/mail/faxoutqueue /mail/faxoutqueue
	+ 9fs fs
	+ bind -c /n/fs/mail/faxoutqueue /mail/faxoutqueue
	  upas/runq -t3 -a /mail/faxoutqueue /sys/lib/fax/faxtry
 [rsc] --rwxrwxr-x M 191333 glenda sys 1094 Sep 22 09:10 sys/lib/fax/receiverc
	/n/sourcesdump/2005/0922/plan9/sys/lib/fax/receiverc:2,11 - 
	/n/sourcesdump/2005/0923/plan9/sys/lib/fax/receiverc:2,11
	  spool=/mail/faxqueue
	  recipients=/mail/faxqueue/faxrecipients
	  
	- # run mail as if we're on emelie
	- rm /srv/emelie
	- 9fs emelie
	- bind -c /n/emelie/mail/faxqueue /mail/faxqueue
	+ # run mail as if we're on fs
	+ rm /srv/fs
	+ 9fs fs
	+ bind -c /n/fs/mail/faxqueue /mail/faxqueue
	  
	  #
	  # Arguments should be
	/n/sourcesdump/2005/0922/plan9/sys/lib/fax/receiverc:43,51 - 
	/n/sourcesdump/2005/0923/plan9/sys/lib/fax/receiverc:43,51
	  			case ???
	  				ext=$i
	  			}
	- 			cp $spool/$1.$ext /n/emelie/lib/nyt/nyt.$to($i)
	+ 			cp $spool/$1.$ext /n/fs/lib/nyt/nyt.$to($i)
	  		}
	- 		cp $spool/$1.1 /n/emelie/lib/nyt/nyt.$3
	+ 		cp $spool/$1.1 /n/fs/lib/nyt/nyt.$3
	  		rm -f $spool/$1.*
	  	case *
	  		{echo $*; echo FAX: page -w $spool/$1.'*'} | mail `{cat $recipients}


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.