home *** CD-ROM | disk | FTP | other *** search
- .bra {
- .ket }
- .key machine/a,type/a
-
- ; batchthem MSC94 09/01/94
- ; Not using UNIX commands.
- ; Should be portable.
- ; ARGS
- ; machine should be the name of the remote machine
- ; type should be the command to compress. Must support stdin/stdout
- ; EXAMPLES
- ; batchthem samaris "gzip -9"
-
- IF EXISTS UUSPOOL:BATCH/{machine}
- set OUSERNAME $USERNAME
- set USERNAME news
-
- Rename UUSPOOL:BATCH/{machine} UUSPOOL:BATCH/{machine}.$process
- ; Previous line for multitasking security, Rename is atomic
-
- ; Creating ...
- batch {machine}.$process T:batchthem.$process
- echo > T:batchthem.c.$process "#! rnews" ; cunbatch worked for me
- {type} < T:batchthem.$process >> T:batchthem.c.$process
-
- ; Sending ...
- uux T:batchthem.c.$process "{machine}!cunbatch"
-
- ; Cleanup
- Delete > NIL: T:batchthem(.|.c.)$process UUSPOOL:BATCH/{machine}.$process
-
- set USERNAME $OUSERNAME
-
- ELSE
- Echo "Nothing for {machine}"
- ENDIF
-