delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/03/02:01:53

X-Spam-Check-By: sourceware.org
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: [Newbie] Trying to run MSWord from Cygwin
Date: Fri, 3 Mar 2006 08:01:28 +0100
Message-ID: <F0D7281DAB048B438E8F5EC4ECEFBDDCB5C538@esmail.elsag.de>
From: =?iso-8859-1?Q?J=F6rg_Schaible?= <Joerg DOT Schaible AT Elsag-Solutions DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k2371m4Y006731

Larry Hall (Cygwin) wrote on Friday, March 03, 2006 2:08 AM:

> P.P.Hughes wrote:
>> Hello,
>> 
>> This is probably a silly question to most you, but here goes:
>> 
>> I'm opening a ssh connection from a Linux box to our Windows Server
>> 2003 which then initiates a Cygwin terminal.  I then try and run a
>> vbs script that opens Word to convert documents from Word to
>> PostScript. 
>> 
>> In my vbs script, as soon as it reaches the following line:
>> 
>> Set objWord = CreateObject("Word.Application")
>> 
>> I receive the following error:
>> 
>> C:\cygwin\home\iss05e\autoprint.vbs(6, 1) Microsoft VBScript runtime
>> error: Permission denied: 'CreateObject'
>> 
>> The user 'iss05e' has Administrative privileges on the Windows
>> machine. 
>> 
>> The script works fine if I log into the machine direct and run it
>> through the command prompt using "cscript autoprint.vbs".
>> 
>> Is there some permissions setting I need to change to allow Cygwin to
>> run GUI applications?
> 
> If you need to interact with the desktop, you need to enable the
> option on the service to allow this.  Either do so from the Windows
> Control Panel->Administrator Tools->Services->RMB->Properties->Log On
> facility or uninstall the service and reinstall it with cygrunsrv and
> add the "-i" flag (or add this to the appropriate line in
> /bin/ssh-host-config and rerun this script).
> 
> Also, be sure you log in with password authentication.  Pub-key
> may also cause the permission denied message you got.

But don't expect Word popping up on your Linux box ... it is not an X app ;-)

- Jörg

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019