This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Thu, 30 Apr 2009 14:37:08 +1000
- Subject: Weird problem when opening MSWORD docs via SSH session to Cygwin
- Reply-to: perryng at pulsemining dot com dot au
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@test ~> ssh administrator@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/