SENDFILE(1)

NAME
sendfile, submit, punch, print - bitnet file send tools

SYNOPSIS

sendfile
    ToUser@ToNode [ -fix | -raw ] [ -bin ] [ -lrecl nn ] [ -fn fname ftype ] [ -class N ] [ -form FromName ] [ -dist Distribution ] [ -tag RSCS-TAG ] [filepath]

punch
    ToUser@ToNode [ -rawpun ] [ -fix | -raw ] [ -fn fname ftype ] [ -class N ] [ -form FromName ] [ -dist Distribution ] [ -tag RSCS-TAG ] [filepath]

print
    ToUser@ToNode [ -asa ] [ -fix | -raw ] [ -bin ] [ -fn fname ftype ] [ -class N ] [ -form FromName ] [ -dist Distribution ] [ -tag RSCS-TAG ] [filepath]

submit
    ToUser@ToNode [ -fix | -raw ] [ -form FromName ] [filepath]

DESCRIPTION

Sendfile command sends out NETDATA encoded file with given fname + ftype and FormName, if they are specified.

Punch command sends out 80-chars per record punch-card images with given fname + ftype and FormName, if they are specified.

Submit command sends out a punch with special flags directing it to be a NJE SYSIN job.

When a file is defined, reallylongfilename.really-long-extension.more.dots maps to: reallylongfile + really-long- (12 + 12 chars.) Default filename (when nothing is defined) is: STANDARD INPUT.

Default for form is STANDARD.

When no input file is defined, STDIN is assumed

Options for punch, print, sendfile, and submit are:

-asa
    For print, and sendfile. A print format which expects to get FORTRAN carriage control style input.

-bin
    For sendfile(1) only. Defines binary transmission, and defaults class `N', if nothing else is defined.

-class C
    Defines single uppercase alpha letter for the NJE spool class of the file. For sendfile the -bin option defaults class to be `N', otherwise default is `A'.

-fix
    Makes padded records of native width; 80 for punch, and submit, 132+1 for print. On sendfile it asks output to be of fixed size. On such cases input lines get padded by the receiver to the fixed format.

-fn fname ftype
    For sendfile(1), punch(1), print(1) only. Defines NJE level `file name' and `file type' strings. Default values are: `STANDARD', and `INPUT'.

-form FormName
    Defines NJE level `file form name' to be used. Default value is `STANDARD'.

-lrecl ##
    For sendfile(1) defines logical record length. Defaults are: binary: 1022, others: 132. If your ASCII input is wider (or narrower), do consider using this option to optimize receiver performance.

-rawpun
    For punch(1) only. Outputs fixed 80 chars per record lines, and expects same from input. (No cr/lfs wanted, just 80 bytes for each record.)

-dist Distribution
    Defines the RSCS Distribution code (max. 8 characters) which may be used to identify printed outputs. Defaults to user name of the sender translated to upper case. If not set here, the emulator inserts the default SYSTEM.

-tag RSCS-TAG
    Defines NJE RSCS TAG (136 characters) which is used to carry various informations especially at RJE applications.

Default behaviour is to read in lines, and convert them from ASCII to EBCDIC and pad or truncate to 80 char (132 for print) records which get spooled for transmission.

ENVIRONMENT
With environment variable EBCDICTBL user can select alternate EBCDIC <-> ASCII translation tables. For more info, see ebcdictbl(5).

FILES
/etc/funetnje.cf

SEE ALSO
bitspool(5), bmail(8), ebcdictbl(5), funetnje(8), mailify(8), qrdr(8), receive(1), send(1), transfer(1)

BUGS

Sendfile should figure out the lrecl in text files by smart pre-scanning of the file -- doable if sending real files ?

DIAGNOSTICS
These programs show their usage summary, when there is something wrong with input parameters. Subtle usage bugs might not be detected!

NOTES
This program quartet is actually same program with 4 different invocation names, and therefore 4 (slightly) different functions.

AUTHORS

Yehavi Bourvine, Hebrew University of Yerusalem, Israel <yehavi@hujivms.bitnet>.

Matti Aarnio, Finnish University and Research Network - FUNET, Finland <mea@nic.funet.fi> <mea@finfiles.bitnet>.

Gerald Hanusch, Johannes Kepler Universitaet/Universitaet Linz, Austria <k000165@alijku11.bitnet>.

Original (VMS oriented package) software by Yehavi Bourvine, UNIX features, plenty of modifications, file handling exits, man-pages by Matti Aarnio. Batch (SYSIN) facilities, and bug fixes prompted by Gerald Hanush, and in large part implemented by Matti Aarnio.