home *** CD-ROM | disk | FTP | other *** search
- :: Rev 4-24-89
- :: This one is a file named "geupl.t" and it goes in %lib
- ::
- :: file for uploads looks like...
- :: @immediate command(s) (optional, as many as needed)
- :: local filename %s4
- :: filename %s0
- :: page:library_number displayed_page %s1
- :: short descripuion %s2
- :: keywords %s3
- :: long description
- ::
- :: please note
- :: 1) the system-wide prompt character for this script is in "pr".
- :: 2) the line delete character used in this file is in "ldel".
- ::
- echo "Control File = %item"
- on !c goto foox
- pattern
- pat 1 "%pr"
- put "\r"
- wait
- if !1 goto foox
- open -!tg %item
- cloop: grab s4
- ss s4 "^(@)(.*)"
- if "t&&%z1" echof "Command Line: %z2"; obey "%z2"; goback cloop
- grab s0; grab s1; grab s2; grab s3
- if !t echoc "%item Short file! "; goto fubar
- if %s0>24 goto fubar
- if %s2>35 goto fubar
- set s5 ""; obey "if f%s4 set s5 OK"; if !%s5 echo "NO FILE"; return
- split s1 " "
- echoc "To: %z0"
- put "%ldel\336m%z0\r"
- split s1 ":" " "
- :: wait
- :: echoc "Choice: %z1"
- :: put "%ldel\336%z1\r"
- wait
- pat 1 "%z2"
- pat 2 "%z0"
- put "%ldel\336\&5\r"
- pat 4 "-----"
- wait -f30
- if !4 goto foobar
- put "%ldel\336%s0\r" : name
- pat 3c "choose another."
- wait -f20
- if 3 put "%ldel\336%s0.%d\r"; wait -f20
- if !4 goto foobar
- put "%ldel\336%s2\r" : short desc
- pg62; pp300; if !dP ena -p
- if dP ena -r
- pat 4 "to save."
- wait
- t -gx; ena -t!p; pp250; put "*S\r"
- pat 2 "Keywords"
- wait -f15
- if !2 goto foobar
- put "%ldel\336%s3\r"; : keywords
- pat 3 "Which item"
- wait -f20
- put "3\r"
- pat
- pat 4 "READY FOR INPUT\r\n"
- wait -f50
- if n put "3\r"; wait -f50
- if n goto
- pat 4 "C"; wait -f3 : Force a timeout to flush the network
- p?0
- sx %s4
- if !? echo "Upload FAILED!"; goto foox
- pat
- pat 1 "%pr"
- pat 2 "<Return>"
- wait -f50
- pat 2i "put the file in the Library"
- pat 3i "Put in Library"
- put \r
- wait -f50
- if 1||n goto foox
- agn: put "Y\r"
- pat 4i "Upload failed!"
- pat 5l "Upload Complete"
- wait -f40
- if 2 goback agn
- if !5 goto foobar
- obey "!mv %item done/%item"
- echoc "File Uploaded: %item moved to done/%item"
- wait -f40 : wait for menu to reappear
- ena -gt
- return
- dupli: echoc "Duplicate File"
- pattern
- pat 4 "\r\n%pr"
- pat 1 "1%pr"
- pat 2 "P 615%pr"
- pat 3 "P 616%pr"
- put "\r" wait -f20
- while !2 put "*x\r" wait -f20
- put "m%s1\r" wait -f30
- echoc "Moving %item to failed/%item"
- obey "!mv %item failed/%item"
- ena -gt
- nolog closetx
- return
- foobar: echoc "File Not Accpeted"
- break
- pat 1 "Option:"
- wait -f4
- put "%ldel\336\&2\r"
- wait -f4
- echoc "Moving %item to failed/%item"
- obey "!mv %item failed/%item"
- ena -gt
- nolog closetx
- return
- foox: echoc "Upload failure not related to Control file"
- ena -gt
- nolog closetx
- if !c fail
- return
-
-
- ---- Directory Listing ----
- total 338
- drwxr-xr-x 2 caf omen 96 May 31 03:45 done
- drwxr-xr-x 2 caf omen 64 May 31 02:44 failed
- -rw-r--r-- 1 caf omen 464 May 31 14:50 gezmodem.key
- ---- Control File ----
- /t/yam/zmodem.zoo
- ZMODEM.ZOO
- 617:6 616
- ZMODEM Specs and Progs
- FAST,CRC-32,ZMODEM,NETWORK,PACKET,PROTOCOL,VT102,UNIX,X.25,XMODEM,YMODEM,SCRIPT
- ZMODEM protocol description and a nearly complete version of Pro-YAM with
- ZMODEM, YMODEM and XMODEM (with Enhanced Data Recovery), Super-Kermit,
- Compuserve B protocol, tree structured help processor, TurboLearn Script
- Writer, Turbodial, and Review. Unmodified YAMDEMO may be used without
- freeware/shareware restrictions.
- ---- end of file at cr-lf pair, previous line -----
-
- Note: Make sure your control files have a CR/LF to end the last line,
- and do not have any trailing blank lines. Also, please note that the
- "Longer Description" must be 9 lines or less.
-
-