man(1) Manual page archive


     JX(9.1)                                                   JX(9.1)

     NAME
          jx - jerq execution and stdio interpreter

     SYNOPSIS
          jx file [ arguments ]

     DESCRIPTION
          Jx downloads the program in file to the jerq or layer on its
          controlling tty and runs it there, simulating standard I/O
          functions of stdio(3). Jx works either stand-alone or in a
          layer.

          Stdout and stderr, if directed to the controlling terminal,
          will be squirreled away during execution to be cat'ed after
          the terminal program has been rebooted.

          Programs to be run by jx should include <jerqio.h> and call
          exit() upon termination in order to restart the default ter-
          minal program.  Programs to be run stand-alone should be
          compiled with the -J option of 3cc(9.1). No special options
          are required for running in a layer.

          Stdio functions available under jx are

               getc  putc  fopen popen printf      fread
               getchar     putchar     freopen     pclosesprintffwrite
               fgets puts  fclose            fprintf
                     fputs access
                     fflush

          Unlike in stdio(3S), getc and putc are functions, not mac-
          ros.  Printf has only %d, %s, %c, %o and %x.  %u prints an
          unsigned decimal number.  %D prints an unsigned long decimal
          number.

          Since jx uses sendchar, sendnchars, and rcvchar, jx programs
          should avoid these, and use only the standard I/O routines.

     FILES
          /usr/jerq/include/jerqio.h
          /usr/jerq/lib/sysint        standard I/O interpreter
          $HOME/.jxout                saved standard output
          $HOME/.jxerr                saved standard diagnostic output

     SEE ALSO
          request(9.2)

     BUGS
          Keyboard standard input doesn't work; use kbdchar(9.2).
          Stand-alone programs do not receive arguments.

     JX(9.1)                                                   JX(9.1)