home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 3
/
PDCD_3.iso
/
internet
/
nbase054n
/
!Newsbase
/
Transports
/
taylor
/
NormPost
< prev
next >
Wrap
Text File
|
1994-09-19
|
1KB
|
39 lines
| > DoPost
|
| Version for uncompressed newsbatches
| Usage: DoPost <NewsServerAddress> <Filename>
|
| DoPost will queue the specified file for posting to News via the
| specified NewsServer. It performs no error checking on the file, and
| assumes that the file contains a valid header.
|
| This version of DoPost produces single, uncompressed news batches
| for sending straight to the other end. It needs little memory and is
| the best version for people with minimal RAM available.
|
| Author: Gunnar Zötl
| Date: 17-Sep-1994
| Last Modified: 19-Sep-1994
|
| more memory will be needed if you want to compress the batches.
Wimpslot -min 256k
|
| this gets around a problem with the C library, which sometimes seems
| confused then receiving a <system$variable> together with I/O redirection.
Set alias$DoPostIt Uux -r - %0!rnews < %1 2> null:
|
| we assume that posting the article will succeed.
|
Set NewsBase$ReturnInfo Article posted
DoPostIt
Set NewsBase$ReturnCode <Sys$ReturnCode>
|
| If posting did not succeed, we alter the Info for NewsBase here.
|
If "<NewsBase$ReturnCode>" <> "0" Then Set NewsBase$ReturnInfo Posting failed
|
| now remove the file sendnews passed us, and unset the helper macro.
|
unset alias$DoPostIt
Remove %1