Commit Graph

1565 Commits

Author SHA1 Message Date
sawka
45dfeb69f6 updates to allow cmd tailing to work with mshell 2022-07-07 21:39:25 -07:00
sawka
4f4dd67d06 comment out tailer for now 2022-07-07 21:38:05 -07:00
sawka
463187221b update tailer to use filenamegenerator. allow ptyonly option for getcmd 2022-07-07 21:37:17 -07:00
sawka
4cc55c46ca only allow one instance of sh2 to run at a time (flock). HUP all running processes when sh2 starts or remote connection ends 2022-07-07 16:29:14 -07:00
sawka
827c33095b hook up cmd cmdstr and prompt 2022-07-07 13:27:44 -07:00
sawka
e4bf4b4ef8 checkpoint, pass remote vars to client for prompt str, get commands showing 2022-07-07 13:26:46 -07:00
sawka
eb880e024e add hostname to init packet 2022-07-07 13:25:42 -07:00
sawka
0053a63536 fix fecmdpacket remotestate 2022-07-07 00:10:58 -07:00
sawka
f7666fe480 checkpoint on storing cmd in db 2022-07-07 00:10:37 -07:00
sawka
2652a3509b add rpc to combined packet parser 2022-07-06 22:46:59 -07:00
sawka
d4acb79585 data getting written to ptyout files in scripthaus dir 2022-07-06 22:46:22 -07:00
sawka
98e46399be checkpoint, getting closer to running a command via mshell server 2022-07-06 19:01:00 -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
51df0479ff sendpacket with context, initialize rpcmap 2022-07-06 14:35:27 -07:00
sawka
56e1ddf8e6 run packet opt to set term type 2022-07-06 14:06:58 -07:00
sawka
a1b8234954 fix tty TERM for ssh connections when usepty is set. also ignore pty read errors 2022-07-06 12:16:37 -07:00
sawka
95f11fb418 checkpoint, getting tty output working in non-detached mode 2022-07-06 11:21:15 -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
45fa371956 checkpoint for migrating to remoteinstance 2022-07-05 16:55:21 -07:00
sawka
2755be315d checkpoint for migrating to remoteinstance 2022-07-05 16:54:49 -07:00
sawka
ef362e5ee9 tighten up packet interfaces, RpcPacketType, RpcResponsePacketType, and CommandPacketType 2022-07-05 16:53:31 -07:00
sawka
123fdfe3bb comment flow working 2022-07-05 10:51:47 -07:00
sawka
b2a1560385 fix typescript errors 2022-07-04 22:37:45 -07:00
sawka
31f90d5401 checkpoint 2022-07-04 22:18:36 -07:00
sawka
5b2e88ec32 checkpoint 2022-07-04 22:18:01 -07:00
sawka
1486c0243c checkpoint, new scpacket.FeCommandPacket 2022-07-03 12:02:22 -07:00
sawka
fc18df0601 checkpoint 2022-07-03 12:01:56 -07:00
sawka
bfaa504249 checkpoint, reading session from server 2022-07-02 13:32:25 -07:00
sawka
17172b158c checkpoint 2022-07-02 13:31:56 -07:00
sawka
e9a09d071e checkpoint, compiling with mshell --server 2022-07-01 17:38:36 -07:00
sawka
0a828b7184 tightening up server mode, fix bugs, refactor, etc. 2022-07-01 17:37:37 -07:00
sawka
f08bd2427e working on remote runtime 2022-07-01 14:57:42 -07:00
sawka
60199713e8 checkpoint, ensuredefaultsession 2022-07-01 14:45:33 -07:00
sawka
b85be3457c checkpoint, working on db calls 2022-07-01 14:07:13 -07:00
sawka
643f08e584 checkpoint, working on setting up db 2022-07-01 12:17:19 -07:00
sawka
02029b3948 add schema 2022-07-01 10:50:09 -07:00
sawka
3f01ff44c3 add migration commands into sh2-server (because migrate cli doesn't ship with sqlite3) 2022-07-01 10:48:14 -07:00
sawka
7340d89089 get sh2-server compiling again 2022-06-30 17:02:19 -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
sawka
9377619e4c write auto-detect logic for arch from uname 2022-06-27 23:14:53 -07:00
sawka
afd3bdb315 implement install command 2022-06-27 22:39:16 -07:00