home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
comm
/
tcp
/
bbgopher
/
rexx
/
gopher.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-04-19
|
965b
|
19 lines
/*
* $VER: gopher.rexx 1.0 (19.4.95)
* Copyright (c) 1995 Jason M. Weber
* Freely distributable
*/
options results; signal on SYNTAX; signal on ERROR; signal on IOERR
tr=transmit; se=sendstring; gu=getuser
if ~show('p', AMITCP) then signal notcp
gu 1202244;nu=result-1;if nu<1 then signal noargs;gu 1302307;mo=result;fi=''
changewhere 'Gopher'; do a=2 to nu;gu 1302307+61*(a-1);fi=strip(fi' 'result);end
sendstring '#4 bbgopher '||mo' '||fi'}';bufferflush;exit
NOARGS:; se '#4 bbgopher}';bufferflush;exit
NOTCP:; tr 'n1AmiTCP must be running to use Gopher. Please notify SysOp.';bufferflush;exit
SYNTAX:;ERROR:;IOERR:;e1=' c9Errorcf: ca'rc' cf(ca'errortext(rc)'cf)'
e2=' c9Linecf: ce'left(sigl,4)'c9Filecf:';gu 1311992;a=result
gu 1311960;b=result;c='cb"ce'a||b'cb"';e2=e2' 'c;tr e1;tr e2;logentry e1
logentry e2;e=sourceline(sigl);do while e~='';e3='c9Sourcecf: cd'
e3=e3||left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush;exit