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: Subject: Weird problem when opening MSWORD docs via SSH session to Cygwin From: Perry Ng To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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/