⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uucp.hour

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 HOUR
字号:
#!/bin/sh# @(#)uucp.hour	4.1 (ULTRIX) 7/2/90umask 022L=/usr/spool/uucp/LOG.shellsuul=/usr/var/uucpuu=/usr/spool/uucptrap ':' 1# Fire up execute daemons now.  Short delay allows command-specific daemons# to establish their lock files so general daemon won't grab their work.$uul/uuxqt -crnews &$uul/uuxqt -cunbatchnews &	sleep 15echo "hour:$$: starting general uuxqt `date`" >>$L$uul/uuxqt &# Start specific polls.#	If you have more dialers than systems listed in LIST.HOUR,#	and the number of systems is small (2-4), you may want to#	uncomment the line which puts the uucico in the background.#	if [ -f $uul/LIST.HOUR ]    then	for i in `sed -e 's/#.*//' $uul/LIST.HOUR`	 do		echo "hour:$$: starting uucico for $i `date`" >>$L		rm -f $uu/STST./STST.$i		#		# To put the uucico in the background,		# uncomment this next entry: 		# $uul/uucico -r1 -s$i &		# 		$uul/uucico -r1 -s$i  # and delete this one	 done    fi## Start general poll.##	Other hourly general polls are locked out until this one finishes.tries=0while tries=`expr $tries + 1` ; test $tries -le 3  do    echo $$ >$uu/LCK...$$    if    ln $uu/LCK...$$ $uu/LCK...hour        then	    echo "hour:$$: starting general uucico `date`" >>$L	    $uul/uucico -r1	    break        else	    echo "hour:$$: collision `date`" >>$L	    # send a harmless signal to lockholder to see if it still exists	    if    kill -CONT `cat $uu/LCK...hour`	        then		    # last-ditch safeguard--break the lock if old enough		    $uul/uuclean -pLCK... -n8 -d$uu	        else		    # lockholder is dead, remove stale lock, try again		    $uul/uuclean -pLCK...hour -n1 -d$uu	        fi        fi  done# wait for any site specific uucico's to finish wait    # must be almost as careful while removing a lock as when creating itif    [ -f $uu/LCK...$$ ]    then	# refresh our lock through its link to avoid race conditions	echo ' ' >>$uu/LCK...$$	if    [ $$ -eq `cat $uu/LCK...hour` ]	    then		# this process still owns the lock, so it can remove it		rm -f $uu/LCK...hour	    fi	rm -f $uu/LCK...$$    else	# assume our lock has been broken	exit    fiecho  "hour:$$:     complete `date`" >>$L

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -