Weird Client Server on Win 7 issue

More advanced topics discussed.

Moderators: Susan Smith, admin, Gabriel

Post Reply
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Weird Client Server on Win 7 issue

Post by bluesfannoz »

Has anybody run into an issue on a Windows 7 machine as the Server, trying to run a background process on the server?

On the Server Machine: Version 4.20o

I can do 'sy -s dir >file.lst' and I get a directory into file.lst

I can do 'sy -s 7za.exe >file.lst' and I get the general output of 7za.exe into file.lst

If I do 'sys -s sendemail.exe >file.lst' I get nothing.

Note for testing I have verified that the sendemail.exe is in the same folder as the 7za.exe

I can do 'sy -@ sendemail.exe >file.lst' and I get the general output of sendemail.exe into file.lst

Is there a security setting that might be stopping a perl script from running as a background process spawned by the server?
Steve Koger
Computer Specialist
SEKESC-MACS Division
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: Weird Client Server on Win 7 issue

Post by Gabriel »

I run commands on the server all the time, including sendemail. But my server is Windows XP.

Between XP and 7, they beefed up windows security quite a lot. If you log into the windows machine using Remote Desktop, using the same user and password that you use for Client Server, and then start a session of brnative on the server, and do your shell call there to sendemail, does it work or fail?

BR Client Server does some funny stuff when logging into the server. For example, on a linux server (still 4.2), BR Client Server ignores all Owner and Group permissions on the server, and only honors the "Everyone" permission. Even if the user who's logged in is the owner of the file, if they haven't granted access to that file to everyone, then Client Server is unable to access it.

Windows security is different, but its possible BR CS is doing something funny with Windows Security that is causing windows to not allow it.

You might try double checking the permissions that user for both sendemail and for the folder/file that you're creating the output in.

Do you get anything in the Client Server log or the standard BR log?

Sorry that I don't have any more specific advice to offer.

Gabriel
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: Weird Client Server on Win 7 issue

Post by bluesfannoz »

Well thanks to Gabriel the problem is solved! Not sure why though. I took his suggestion and looked for the log files and determined it did not have permission to create the log files in the folder it was set to create them in. Moved where it was to write the logs to a folder where the user has permissions and SHAZAM the test routine now works!

Understand this was not the folder where the output from sendemail was suppose to be created. That folder the user had permission to write in. This was the folder where the log files were to be created.

So I am guessing something sendemail does required accessing that same temporary folder that it did not have permission to.

Just another example this forum works!

Thanks Gabe!
Steve Koger
Computer Specialist
SEKESC-MACS Division
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: Weird Client Server on Win 7 issue

Post by Gabriel »

I'm certain you've helped me just as much, or more, as I've helped you on this forum. :)

Was it the log folder for sendemails logs that had the problem? I guess it must have been because if the problem was with BR's logs then you'd never have gotten CS to connect in the first place.

Its especially difficult to debug executing commands on the server because you don't have a way to see the output or error messages the program might produce.

Gabriel
bluesfannoz
Posts: 291
Joined: Fri Jun 19, 2009 9:01 am
Location: Lawrence, Kansas
Contact:

Re: Weird Client Server on Win 7 issue

Post by bluesfannoz »

No it was the log for BR that it did not have permission to overwrite. That is why I thought it was a strange solution for the problem!

Yes the lack of being able to see output from the server shell call does make error resolution difficult. It is why as you can see I try things manually with piping the output to a file when I can. That was what was so strange. It was only sendemail.exe that I could not run. Other executables like 7za.exe ran without issue.

Thanks again for giving me a different direction to look. Sometimes that's all it takes!
Steve Koger
Computer Specialist
SEKESC-MACS Division
Gabriel
Posts: 412
Joined: Sun Aug 10, 2008 7:37 am
Location: Arlington, TX
Contact:

Re: Weird Client Server on Win 7 issue

Post by Gabriel »

No problem :)

That is really weird though .. how did BR launch and make its error file but then fail when you tried to run sendemail.

Gabriel
Post Reply