Weird problem when opening MSWORD docs via SSH session to Cygwin
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Thu Apr 30 16:04:00 GMT 2009
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@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.
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/
More information about the Cygwin
mailing list