Forum Replies Created
Script is working okay when run manually.
Both in terminal and when called by a preceding sh to run it.
Will look at nxerror.log to see if it tells me anything else and email it also if I can’t get any further.
Logfile sent to the email address.
check if script is executable and user “nx” has permissions to run it. Than check if you correctly set your script into server.cfg
Yes user “nx” has read&write permissions and script is correctly referenced in server.cfg. I also used sudo chmod +x myscript.sh to make it executable.
Even further than this, I set chmod 777 permissions on the script so anyone could run, but this did not seem to make any difference either.
Do you log in straight onto the machine where you edit server.cfg?
I am trying to add the same custom script to: UserScriptAfterLogout, UserScriptAfterSessionClose, UserScriptAfterSessionFailure.
However, I began by adding it only to: UserScriptAfterLogout as this seemed to be the most common event recorded in the logs (user disconnects from NoMachine server by pressing close, NoMachine records this in logs as ‘User Logoff’ and this is when I want the script to execute).
Whether adding to one at a time, or to all 3 however, it doesn’t work with any of them.
I have recorded a log at SessionLogLevel 7, my issue you will see is with UserScriptAfterLogout.
I have attached the log to this message.