diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 14:13:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-11 14:13:40 -0300 |
commit | 558828c4eba4688740ecc7476cf6ef73e2c1ae67 (patch) | |
tree | b3d7867f6017594348d4ea49901a50b9b67019b4 | |
parent | 607a5b91bc887f90655b7f08e76804ea41b4befd (diff) | |
download | kvmx-558828c4eba4688740ecc7476cf6ef73e2c1ae67.tar.gz kvmx-558828c4eba4688740ecc7476cf6ef73e2c1ae67.tar.bz2 |
Shell: try disown instead of nohup
-rwxr-xr-x | kvmx | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1736,12 +1736,20 @@ function kvmx_shell { echo "Running in restricted shell mode." echo "Allowed commands are only `echo $restricted_actions | tr ':' ' '`" else - # Process command - nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} + # Process command, nohup version, stdout and stderr are redirected to a file + #nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} + + # Process command, disown version, stdout are preserved + $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & + disown fi else - # Process command + # Process command, nohup version nohup $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} + + # Process command, disown version + $APP_BASE/kvmx ${STDIN[0]} $VM ${STDIN[@]:1} & + disown fi fi done |