Red J Adaya
afa7ef3d76
remove license ( #2 )
2023-10-09 18:19:47 -07:00
sawka
adc4948d17
add shell to initpk
2023-10-05 09:50:35 -07:00
sawka
c29c4a9a2d
PE-41 remote file api ( #1 )
...
* new remote file streaming API packets. implemented 'stat' for remote files
* introduce filedata packets. allow streaming RPCs. fix RPC bug with combined packet parsers. implement file streaming for filestream RPC.
* checkpoint on adding write-file
* completely untested write-file impl -- writefilecontext, condition var for signaling new data packets, cleanup goroutine, ready/done states.
* better error messages, also unlock MServer before calling done on wfcs
* fix bug with perm json tag. change constant name
2023-08-31 22:03:38 -07:00
sawka
093e550d50
add a debug flag to log the rc file for bash initialization
2023-08-14 12:23:33 -07:00
sawka
94827683b5
big rename mshell to commandlinedev/apishell
2023-07-26 13:00:07 -07:00
sawka
5e212caf83
allow staticdata to set a higher buffer limit (since it is processed before mpio multiplexer takes over). raise max rundata size to 1M from 128k
2023-04-17 15:13:03 -07:00
sawka
15c09b7820
fix, allow empty values for pvar fields
2023-04-12 22:57:17 -07:00
sawka
bab095d701
add buildtime to initpacket
2023-04-12 21:45:45 -07:00
sawka
a4a4d53eb0
grab git branch
2023-04-11 23:52:58 -07:00
sawka
1810107572
fix error message
2023-04-02 23:11:29 -07:00
sawka
01a99cba03
minor updates/bugfixes
2023-04-02 23:00:55 -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
bdd8381b01
updates/bugfixes for statediff
2022-11-28 18:05:54 -08:00
sawka
605d0899cf
checkpoint
2022-11-28 00:15:34 -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
c94c0b7c36
normalize assoc arrays on parse so then values can be compared
2022-11-25 14:21:51 -08:00
sawka
da2fe25fb8
move to simpleexpand
2022-11-22 22:59:29 -08:00
sawka
d86bee87d8
partial word expansion
2022-11-04 12:28:08 -07:00
sawka
4392956f99
replace expand.Literal with safer hand-written version that only expands quoted strings and literals
2022-11-03 23:53:25 -07:00
sawka
76d3c10748
decls equal fn -- must parse associative arrays (order is not consistent in bash output)
2022-11-02 18:41:53 -07:00
sawka
ee36078082
parameterize the mshell bin directory (for packaging). inject MSHELL variables for execution
2022-11-01 21:19:42 -07:00
sawka
1da450e61c
implement reinit, also do not store 'columns' var
2022-10-27 21:59:17 -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
df80d2ac08
allow MakeClientProc to be canceled with a context
2022-09-16 12:27:14 -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