sawka
bc488cf242
fix PE-63, permissions for temp files
2023-09-05 21:21:34 -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
865ac0220f
bump dep versions
2023-08-03 14:58:15 -07:00
sawka
94827683b5
big rename mshell to commandlinedev/apishell
2023-07-26 13:00:07 -07:00
sawka
386b5f7a90
add openai packet
2023-05-08 18:00:46 -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
963bef8425
add groupid, since it is now a screenid not a sessionid
2023-03-20 19:21:23 -07:00
sawka
0ad1d9236a
commit unused code in working version
2023-03-08 09:56:38 -08:00
sawka
573ca55c50
add stat call
2023-02-06 00:29:33 -08: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
39e5e6c729
remove test code
2022-12-05 15:45:26 -08:00
sawka
ad2cab595d
kill server on I/O write error, and add a pinger to continually send ping packets to test connection
2022-12-05 15:38:44 -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
eb3cf80329
fix json marshaling bug for statediff
2022-11-27 14:16:25 -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
5a151369cb
line/mapdiff code
2022-11-25 15:52:29 -08:00
sawka
c94c0b7c36
normalize assoc arrays on parse so then values can be compared
2022-11-25 14:21:51 -08:00
sawka
717461908a
command compgen also needs to detect directories
2022-11-23 10:51:51 -08:00
sawka
da2fe25fb8
move to simpleexpand
2022-11-22 22:59:29 -08:00
sawka
01821ca094
allow variable comptype
2022-11-09 20:38:47 -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
8939c57dd8
minor, add isempty func for shellstate
2022-10-30 12:52:58 -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