delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/30/11:32:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_50,J_CHICKENPOX_83,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49F9C402.3060303@cygwin.com>
Date: Thu, 30 Apr 2009 11:30:10 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20090101 Remi/2.0.0.19-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Weird problem when opening MSWORD docs via SSH session to Cygwin
References: <a374a5a60904292137h7db55ed8t5ec4ea79854fc072 AT mail DOT gmail DOT com>
In-Reply-To: <a374a5a60904292137h7db55ed8t5ec4ea79854fc072@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Perry Ng wrote:
> Hi All.
> 
> I've been trying to get Cygwin to open up a MSWORD document via a vbs
> using cscript but have struck a weird problem when attempting to do
> so.
> 
> I've created a VBS, it opens the  word document and prints it.
> 
> Using Cscript + vbs, it works fine from the Cygwin shell, However
> 
> The vbs fails to open the word document, when i ssh to the cygwin
> terminal and running the same script using cscript command, it fails
> to find the word document.
> 
> ****************
> root AT test ~> ssh administrator AT cygwinserver  cscript "test.vbs"
> 
> Microsoft (R) Windows Script Host Version 5.6
> Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
> 
> Error # 424 - C:\test.doc - Object required
> 
> ********************
> 
> The VBS is telling it to open a file from C:\test.doc  (which exists).
> 
> 
> Now i know the word document exists and the vbs works, because from
> the Cygwin terminal it opens fines and performs as it should. It only
> fails to load when i do it via SSH.
> 
> It can't find the document, even tho i know the document exists and
> the vbs script works via the cygwin shell. It seems to fail when you
> execute the cscript filename.vbs via ssh to the Cygwin server.
> 
> I've searched high and low, but can't seem to find any answers.
> 
> ANY help would be appreciated.

I'm going to guess you're using pub key authentication with ssh.  If so,
try password instead.

If my WAG isn't correct, I recommend reading and following the problem
reporting guidelines found at the link below if you need to follow-up on
this.  This will bootstrap any further diagnosis and keep folks on this
list that can help from having to assume too much.

> Problem reports:       http://cygwin.com/problems.html 


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

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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