LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-22-2009, 10:46 PM   #1
cgcamal
Member
 
Registered: Nov 2008
Location: Tegucigalpa
Posts: 78

Rep: Reputation: 16
Open MS Office document from UNIX emulator


Hi everyone,

Iīve been trying to launch an office document from UNIX emulator (UWIN and Cygwin) in similar way
like Iīve done in DOS in order to give continuity to one some process that begins with a unix script.

I sent the following line in UWIN and Cygwin:

Code:
"/C/Program Files/Microsoft Office/Office12/EXCEL.EXE"  #This launches Excel in UWIN but not in Cygwin
But when I,ve tryed to open an Excel document in UWIN with the line:

Code:
"/C/Program Files/Microsoft Office/Office12/EXCEL.EXE" "/C/Documents and Settings/Files/MyFile.xls"
I get an error saying that I have to verify the file.

Somebody knows how to do what I looking for? Itīs possible?

Thanks in advance for any suggestion

Best regards
 
Old 01-23-2009, 01:09 AM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by cgcamal View Post
Hi everyone,

Iīve been trying to launch an office document from UNIX emulator (UWIN and Cygwin) in similar way
like Iīve done in DOS in order to give continuity to one some process that begins with a unix script.

I sent the following line in UWIN and Cygwin:

Code:
"/C/Program Files/Microsoft Office/Office12/EXCEL.EXE"  #This launches Excel in UWIN but not in Cygwin
But when I,ve tryed to open an Excel document in UWIN with the line:

Code:
"/C/Program Files/Microsoft Office/Office12/EXCEL.EXE" "/C/Documents and Settings/Files/MyFile.xls"
I get an error saying that I have to verify the file.

Somebody knows how to do what I looking for? Itīs possible?

Thanks in advance for any suggestion

Best regards
Excel will not understand path like this:
"/C/Documents and Settings/Files/MyFile.xls". "/" or "\" normally mean top-level directory of current harddrive, and it doesn't have "C" folder.
Make it into standard:
"C:\Documents and Settings\Files\MyFile.xls" or
"C:/Documents and Settings/Files/MyFile.xls" (slashes instead of backslashes should be fine)
 
Old 01-23-2009, 12:41 PM   #3
cgcamal
Member
 
Registered: Nov 2008
Location: Tegucigalpa
Posts: 78

Original Poster
Rep: Reputation: 16
Hi ErV,

Well, it worked in UWIN with your suggestion, your right.

Iīm not sure, but I donīt know why in Cygwin isnīt working to
launch the Excel application. It could be syntax used by the
shell and I onīt know how to fix it.

The error is:

Code:
user@user/cygdrive/c
$ "/C/Program files/Microsoft Office/Office12/EXCEL.EXE"
bash: /C/Program files/Microsoft Office/Office12/EXCEL.EXE: No such file or directory
Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unix emulator anyone? vickr1z General 2 09-04-2006 05:23 PM
open office writer text document zip files maricar Linux - Newbie 1 04-03-2006 10:32 PM
open office document w/ passwd rmakers Linux - Software 7 03-11-2006 11:54 AM
unix emulator anyone? vickr1z Other *NIX 1 09-23-2004 02:20 PM
what is a unix emulator?? Paula01 Linux - General 1 03-12-2002 12:28 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration