You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: