Excellent point about hard coding a path into the script. Not normally my method but just wanted to get this working initially. I've been testing with NAV 7.5 and decided to try an install of NAV 8.0 and it installs to a different path so thanks for pointing that out.

Also, you're right about the fact that somebody shouldn't be looking at the login scripts unless they know what they're doing. Only two of us have authority to modify the scripts so we keep it pretty secure.

I'll use the $HOMESERVER variable for the moment and will post a resolution if I find one.

Thanks again for the feedback.