delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/30/00:37:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=BAYES_05,J_CHICKENPOX_83,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Reply-To: perryng AT pulsemining DOT com DOT au
Date: Thu, 30 Apr 2009 14:37:08 +1000
Message-ID: <a374a5a60904292137h7db55ed8t5ec4ea79854fc072@mail.gmail.com>
Subject: Weird problem when opening MSWORD docs via SSH session to Cygwin
From: Perry Ng <perrypulse AT gmail DOT com>
To: cygwin AT cygwin DOT 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

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.

Cheers
PeZ

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