home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
300-399
/
ff319.lzh
/
CNewsSrc
/
cnews.orig.lzh
/
misc
/
locknews
< prev
next >
Wrap
Text File
|
1989-06-27
|
495b
|
19 lines
#! /bin/sh
# lock the news system & arrange to unlock later
# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}
PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH # don't export it
umask $NEWSUMASK
cd $NEWSCTL
trap : 1 2 3 15 # kids can be killed, but not me
if newslock sys LOCK; then
echo 'news system locked by you'
PS1="newslocked$PS1 " ${SHELL-/bin/sh}
rm -f LOCK
echo 'news system unlocked now'
else
echo 'inadequate permissions, or news system already locked'
fi