Thanks Joey -

Fun indeed !
In addition to the wikipedia url you listed below, I found the site

   http://acms.ucsd.edu/info/jobctrl.shtml

useful in explaining Unix job control (when using the ctrl+z option).

Tom


On Mon, Dec 12, 2011 at 3:28 PM, Joey K Tuttle <[email protected]> wrote:

> Tom,
>
> You should note that the ctrl+ commands are standard Linux/Unix ASCII
> signals in a console session going back to TELETYPE days.... For a
> complete description of them, try -
>
>
>
> http://en.wikipedia.org/wiki/ASCII_control_character#ASCII_control_characters
>
> Within that you can find links for the various ones you mention -
>
> ctrl+c (ASCII end of text) signals "attention/interrupt" and can be
> useful to interupt a runaway process (in j or other places)
>
> ctrl+d (ASCII end-of-transmission character) signals the end of your
> interactions (ends j session)
>
> ctrl+z (ASCII Substitute)  In Unix operating systems, this character is
> typically used to suspend the currently executing interactive process.
> The suspended process can then be resumed in foreground (interactive)
> mode, or be made to resume execution in background mode, or be
> terminated. This is a really handy trick in jconsole under Linux/Unix.
>
> As for the exit (2!:55) issues. You should carefully note that when
> someone says:
>
>    q ''
>
> They typed the letter q (e.g. the cover verb for 2!:55) followed by two,
> adjacent, single quote (') marks which is an empty string in j.
>
> I hope you are having fun using j.
>
> - joey
>
> On 2011/12/12 08:29 , Tom Szczesny wrote:
> > Hi -
> >
> > exit 0                works
> > ctrl+c                does not work
> > ctrl+d                works
> > ctrl+z                exits, but with a message
> >                                        [1]+  Stopped
> > bin/jconsole         (the first time you end a session)
> >                                        [2]+  Stopped
> >   bin/jconsole         (the second time you end a session)
> > ctrl+q                does not work
> >
> > 2!:55 ''               works (when I add the the 2 single quotes at the
> end)
> > 2!:55  0             does not work
> > 2!:55                 does not work (with no pair of single quotes)
> >
> > Thanks again,
> > Tom
> >
> >
> > On Mon, Dec 12, 2011 at 11:13 AM, Devon McCormick<[email protected]
> >wrote:
> >
> >> Tom -
> >>
> >> This really ought to work, even under Linux:
> >>    2!:55 ''
> >> where the argument to "2!:55" is an empty vector (two single-quotes).
> >>
> >
> >> Since I define "q" for myself, (i.e. it's not a standard verb) I'm not
> >> surprised that that didn't work.
> >>
> >> Since I usually use "2!:55" with an empty vector argument (''), does
> that
> >> mean I'm not giving a return code?  Would that be like a "void" or
> "void *"
> >> return in C?
> >>
> >> Regards,
> >>
> >> Devon
> >>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to