Commit Graph

73 Commits

Author SHA1 Message Date
sawka
a4a4d53eb0 grab git branch 2023-04-11 23:52:58 -07:00
sawka
3240b128e1 fix nil ptr exception (because GetType() returns a value even when pk is nil) 2023-02-01 00:44:31 -08:00
sawka
a4b8819948 increase rundata size limits 2023-01-31 12:14:41 -08:00
sawka
91667e4dec process special input signals. also allow numeric signals. 2022-12-20 21:58:24 -08:00
sawka
7250bbb1ad rename to mshell_exittrap 2022-12-19 17:38:24 -08:00
sawka
f010758b36 mshell single writes ping packets to detect when the server has died. sends SIGHUP to children 2022-12-05 22:26:13 -08:00
sawka
4481cddadc checkpoint on statediff. bug fixes. working on more robust error handling for packetsender 2022-11-27 13:47:18 -08:00
sawka
ee36078082 parameterize the mshell bin directory (for packaging). inject MSHELL variables for execution 2022-11-01 21:19:42 -07:00
sawka
e5d2267f27 minor updates to get state to be consistent 2022-10-27 00:34:16 -07:00
sawka
245a1995e2 parse shellvariables with args 2022-10-25 12:31:07 -07:00
sawka
674a6ef11e grab shell vars with export vars 2022-10-24 21:26:39 -07:00
sawka
d8b5508b77 returnstate option for runpk (for sourcing files) 2022-10-22 14:45:31 -07:00
sawka
b9c3940b99 big change to execution, run command as a script and set aliases/funcs 2022-10-16 23:46:59 -07:00
sawka
1c2c8c2f4d return defined bash aliases in initpk 2022-10-15 13:45:52 -07:00
sawka
d8e7c915e5 add sshport and batchmode 2022-09-30 17:22:57 -07:00
sawka
be1e1dfe90 allow context cancelation of install 2022-09-26 23:23:32 -07:00
sawka
ea6b571184 pass context to runinstall for cancelation 2022-09-26 21:10:08 -07:00
sawka
b5c67b6260 refactoring for versioned mshell binaries on remotes 2022-09-26 13:02:34 -07:00
sawka
4550e18b6b version string will now be a real semantic version 2022-09-24 13:53:19 -07:00
sawka
aa1542cfc0 don't overwrite mshell if no input received on stdin during install 2022-09-21 23:51:16 -07:00
sawka
ca61597a19 send uname in initpk. remote space between uname parts 2022-09-21 23:26:53 -07:00
sawka
53d710f709 option to send ssh errors to tty instead of stderr 2022-09-13 17:10:18 -07:00
sawka
ec143de8b4 handle term resize / SIGWINCH, move from mpio to shexec (used UnknownPacketReporter). change signum to signame for cross-system compatibility 2022-09-06 16:40:41 -07:00
sawka
670f54a5b4 checkpoint 2022-09-06 13:58:07 -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
57b54198e5 limit maxptysize 2022-09-03 23:38:35 -07:00
sawka
39dacb988a default term rows should be 24 (not 25), add min/max values as well 2022-09-03 23:26:57 -07:00
sawka
8e4b02cec4 run mshell env in interactive bash shell with a new pty. this picks up special interactive environment vars from bash startup scripts 2022-08-30 00:23:03 -07:00
sawka
8274d19e0b use interactive shell for environment 2022-08-24 18:57:13 -07:00
sawka
09a072f900 run localhost mshell with cwd at HOME, not in current directory 2022-08-24 02:11:49 -07:00
sawka
f63a851b1a export ParseEnv0 and MakeEnv0 2022-08-22 17:27:55 -07:00
sawka
7d06bc766c rename env to env0. add envcomplete bool 2022-08-22 16:24:53 -07:00
sawka
e26705623b add --env mode to mshell to print cwd and environment (for server initpk). needed because OSX does not support 'env -0' 2022-08-22 15:59:03 -07:00
sawka
86a7cd59e6 use cirfile for detached commands 2022-08-19 15:28:32 -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
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
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
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