Skip to content

Shell support #61

@matz3ibm

Description

@matz3ibm

Hi Scott,

probably not found the right workaround or command yet, but the Operations team and I were looking on how to switch to shell mode from jsqsh, eg. for doing some researching in hdfs, run some scripts or ETL jobs. In the \help I found:
"2> go | grep test | more"
.... but would like to have something like

\sh to invoke a "configurable shell"
to execute bash, ksh, sh, probably with cmd line as parameter- similar to vi ":sh" command.

Using this with the jsqsh alias command with an additional template mechanism would be very practible:
\alias listdnodes @@cluster@@='\sh ./opt/IBM/tools/listnodes.pl -s=dnodes -c @@cluster@@'

(I think there is a little error on the alias wiki page, "pre-argumented commands": https://github.com/scgray/jsqsh/wiki/alias in example: 1> \alias '\prod'='\connect -U sa -S prod-db -d mssql-jtds' ==> then it's called with "1>\prod", or? - but would tat not be improvable like 1> \alias '\env:@@env@@'='\connect -U sa -S @@env@@ -d mssql-jtds' ===> called "1>\env:prod-db"

regards from Frankfurt,
Matthias

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions