home *** CD-ROM | disk | FTP | other *** search
- .key System/A,SIZE/K,
- .def SIZE 49152
- .bra [
- .ket ]
-
- ;# BATCHNEWS -- batch out-going news for a system
- ;# Usage: batchnews System [SIZE Bytes]
- ;# Copyright (c) 1991,92 Ralf S. Engelschall, All Rights Reserved.
- ;# Copyright (c) 1991,92 Cyvaned Systems, All Rights Reserved.
-
- lab retry
- if exists T:batchnews.LOCK
- wait 10
- skip back retry
- endif
- echo >T:batchnews.LOCK "batchnews"
-
- whence >env:TMP[$$] batchnews.2
- if exists NEWSARTS:out.going/[System]/togo
- mkbatch -s[SIZE] [System]
- find NEWSARTS:out.going/[System] -name togo.* -type f -print | awk >T:batchnews[$$].TMP -f $TMP[$$]
- execute T:batchnews[$$].TMP [System]
- delete >NULL: T:batch[$$].TMP
- else
- echo "sorry, nothing to batch for system [system]"
- endif
-
- delete >NULL: T:batchnews.LOCK
-
-