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