Commit Graph

22 Commits

Author SHA1 Message Date
sawka
1da450e61c implement reinit, also do not store 'columns' var 2022-10-27 21:59:17 -07:00
sawka
df80d2ac08 allow MakeClientProc to be canceled with a context 2022-09-16 12:27:14 -07:00
sawka
4f4e12c00a add single-from-server option to mshell, send message packets with ck back to server, report unknown packets back to server 2022-09-06 12:57:54 -07:00
sawka
77bd1fa7bc return uname 2022-08-17 12:55:12 -07:00
sawka
5a8ffa3544 more complicated compgen for directory vs file completion 2022-08-11 10:21:11 -07:00
sawka
f4515139a1 uniq completions 2022-08-10 18:33:58 -07:00
sawka
d4528d1c42 compgen hasmore 2022-08-10 16:07:41 -07:00
sawka
fbb523aed8 implement compgen and cd in mshell server 2022-08-09 14:23:59 -07:00
sawka
eb880e024e add hostname to init packet 2022-07-07 13:25:42 -07:00
sawka
353605f815 bug fixes and updates for running server with scripthaus 2022-07-06 18:59:46 -07:00
sawka
1b69bb0ac8 fix mshell server to just blindly proxy mshell single command input/output, better simpler code 2022-07-06 17:16:45 -07:00
sawka
9aa684882b don't send done packet when detached 2022-07-06 00:25:59 -07:00
sawka
0d585e5959 clean up --single detached mode 2022-07-06 00:21:44 -07:00
sawka
96123c8e1a checkpoint for tightened runtime semantics for calls -- always send response packets, make sure correct response ids are set, etc. 2022-07-05 23:14:14 -07:00
sawka
0c204e8b2b standardize error reporting, rpc gets resp, command get cmderr, other errors are just sent as messages 2022-07-05 17:45:46 -07:00
sawka
0a828b7184 tightening up server mode, fix bugs, refactor, etc. 2022-07-01 17:37:37 -07:00
sawka
b6711e7428 sanitize packets to be 7-bit ascii without control chars. dont send data/dataend when no rundata present. use os.Executable to locate mshell if running locally. more work on detached mode 2022-06-29 14:29:38 -07:00
sawka
4d8841a459 use RunPacketBuilder in server mode 2022-06-28 22:05:47 -07:00
sawka
c73691ac24 move static files from remotefd content to 'rundata'. send all rundata before command start. parse rundata before command start. compatible with detached commands 2022-06-28 21:57:30 -07:00
sawka
9054c3cdcc got basic mshell --server functionality working to dispatch multiple commands 2022-06-28 19:01:33 -07:00
sawka
1d44afc10e working on server mode. extract fdcontext as interface. create packet writer/reader for mpio. hook up to serverFdContext. 2022-06-28 17:20:01 -07:00
sawka
d7eb2526f0 refactor RunClientSSHCommandAndWait for server code 2022-06-28 15:04:08 -07:00