Only of interest to those still using SRSS 4.1/SRWC 2.1. I was testing launching an app on a WTS using SRSS 4.2/SRWC 2.2 and it worked fine:
uttsc -c "c:\program files\appdir" -a batchfile WTS1 Within the BAT, I set an environment variable and run app.exe. However, when I tested on production, which was SRSS 4.1/SRWC 2.1, it failed: /var/dt/Xerrors indicated a syntax error in uttsc. But it was the same string I used in my testing. I figured out that the "-c" and "-a" options did not like spaces in the pathname [hence C:\program files was causing problems; and it wasn't a lack of "" as I had them. The error was occurring *before* Windows could be launched.]. An additional problem was that even if my "-c" argument had no spaces [ie C:\appdir], uttsc would launch but once I logged in to Windows I got an error: "invalid working directory C:\appdir". So I can't use "-c" The problem was that even if I stopped using "program files" and I used only "-a" ["c:\appdir\batchfile"], the working directory was not set and the app would not work correctly [it senses the working directory and changes behavior based on that]. I solved it by setting the working directory in my batch file: uttsc -a "c:\appdir\batchfile" WTS1 Batchfile contents cd "c:\program files\appdir" "c:\program files\appdir\app.exe" May this save someone else the 6 hours I spent figuring this out. Scott _______________________________________________ SunRay-Users mailing list SunRay-Users@filibeto.org http://www.filibeto.org/mailman/listinfo/sunray-users