File:  [CSRG BSD Unix] / 43BSD / contrib / notes / Samples / cronlocal.sh
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:54 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3

#! /bin/csh -f
#
# Read all files with names of the form "system.list" and send any
# notesfiles listed in that file to "system". Allows us to add another
# feed by merely adding a file "system.list" in the .utilities directory.
#
echo -n "	LOCAL NOTESFILE UPDATES begin: " ; date
echo " Lock files existing before updates: "; /bin/ls -l /usr/spool/notes/.locks
set nfutil = /usr/spool/notes/.utilities
cd ${nfutil}
foreach i ( *.list)
	set sys = `echo ${i} | sed 's/\(.*\).list/\1/'`
	echo " ------ Sending to system ${sys}"
	time /usr/bin/nfxmit -d${sys} -f ${nfutil}/${sys}.list -f ${nfutil}/short.names
end
echo " Lock files existing after updates: "; /bin/ls -l /usr/spool/notes/.locks
echo -n "	LOCAL NOTESFILES UPDATES completed: " ; date

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.