catalina

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Server.cfg – script does not execute? #23214
    catalina
    Participant

    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.

    in reply to: Server.cfg – script does not execute? #23155
    catalina
    Participant

    Logfile sent to the email address.

    in reply to: Server.cfg – script does not execute? #23123
    catalina
    Participant

    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?

    Yes

    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.

Viewing 3 posts - 1 through 3 (of 3 total)