home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 1
/
GoldFishApril1994_CD2.img
/
d4xx
/
d473
/
cnewssrc
/
cnews_src.lzh
/
relay
/
amiga
/
addgroup.e
next >
Wrap
AmigaDOS Script File
|
1991-01-04
|
786b
|
35 lines
.key GROUP/M,TYPE/M
.bra [
.ket ]
; addgroup - add a newsgroup, locally only
Path NewsBin:misc
; What about =realgroup ???
if [TYPE] ne n and [TYPE] ne y and [TYPE] ne m and [TYPE] ne x
echo "Usage: addgroup groupname {y|n|m|x|=realgroup}"
quit 10
endif
grep -x "[GROUP]" NewsCtl:active
if val $RC ne 0
echo "addgroup: [GROUP] already exists!"
quit 10
endif
Lab Again
if Exists T:Cnews.lock
wait 50
SkipBack again
endif
echo >T:Cnews.lock "addgroup"
echo >>NewsCtl:active "[GROUP] 0000000000 0000000001 [TYPE]"
; These next lines are not essential, so we leave them out...
; mkpdir $NEWSARTS/`echo $1 | tr . /`
; echo "$1 `getdate now` $SENDER" >>$NEWSCTL/active.times # rn hook
; echo "newsgroup $1 was created locally by $SENDER." | mail $NEWSMASTER
delete T:Cnews.lock