problem debugging xset command inside batch script (revised)

Larry Hall (Cygwin X) reply-to-list-only-lh-x@cygwin.com
Wed Feb 20 01:05:00 GMT 2008


jjo wrote:
> Allen, Matthew <MAllen <at> utcretail.com> writes:
> 
>> You should be able to simply set the DISPLAY variable and get xset to
>> work that way. The other option I'd think you should be able to do is
>> use a "-display" option to xset. But I haven't confirmed xset has it.
>>
> 
> Thanks, Allen. Indeed, xset does have a '-display' option and using it with
> 'localhost:0.0' fixed the problem with my Windows/DOS script.
> 
> 
> The next question is this:
> 
> At the end of my script I start Mathematica on the remote computer and display
> its front end in a local X window with this command
> 
>    rxvt -e ssh -Y remote_computer_name mathematica
> 
> This works but leaves behind a superfluous RXVTerm that I'd rather not see.
> 
> This should work without the extra RXVTerm, but doesn't
> 
>    ssh -Y remote_computer_name mathematica
> 
> Why?

Again, DISPLAY not set?  But your alternative will leave you with a
console window, or at least briefly.  If this is not tolerable, check
out 'run'.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 429-6305 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/



More information about the Cygwin-xfree mailing list