LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-22-2004, 05:50 AM   #1
SmallTalker
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
Just read DOC and XLS file formats!


So i need a software just for reading, and not for editing files in this format.

Is there any?
 
Old 09-22-2004, 06:59 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Yes, there is such an app. It is called viewOOfile.sh, and here it is
Code:
#!/bin/bash
# $1: path to the file to view

[ -f "$1" ] || exit 1
[ -r "$1" ] || exit 1

OLDPERM=$(find "$1" -printf "%m")
chmod a-w "$1"
soffice "$1"
chmod $OLDPERM "$1"
But this "software" has a small weakness: if the file you want to view is owned by someone else, and this someone explicitely gave you the right to write to it, then it won't be read-only.

Yves.
 
Old 09-22-2004, 07:56 AM   #3
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
FYI that above shell script is a just a joke to use soffice (StarOffice), the non-free Sun version of OpenOffice. Try either.
 
Old 09-22-2004, 08:17 AM   #4
inimino
Member
 
Registered: Sep 2004
Location: Colorado, US
Distribution: Gentoo, Debian
Posts: 32

Rep: Reputation: 15
I think the OP is asking if there is something like the MS Office viewer programs: small programs you can put on a CD or send in an email along with a file in case the receiving end doesn't have Office installed.

If you're sending documents to another Linux box, they might have OO.o installed anyway, and if you're not, such a program won't work, so I don't think something like this is practical or necessary for Linux.

The main reason MS releases those programs is to encourage people to distribute documents in Word, Powerpoint, etc formats, which is a horrible idea.

I think the closest equivalent on Linux is providing a link to OO.o
 
Old 09-23-2004, 05:01 AM   #5
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
Quote:
Originally posted by Proud FYI that above shell script is a just a joke to use soffice (StarOffice), the non-free Sun version of OpenOffice. Try either.
Yes it is a joke , because it still requires the PC to load the full OpenOffice binary. But it DOES work!

As for using StarOffice, no I wouldn't. As far as I know, the OpenOffice launcher script is still called soffice, or it has changed at some point in time. Maybe it is ooffice now? So just replace soffice with ooffice. Sorry for the mistake.

Yves.
 
Old 09-23-2004, 06:12 AM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
I've only got an ooffice command, no soffice here.
 
  


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
command line utility to convert between formats like .doc, .sxw, .rtf and others? bigtpumped Linux - Software 1 09-12-2005 09:54 PM
database or xls doc? mifan Programming 6 09-05-2005 04:22 PM
Which partition formats can Linux read from? (I need some help with partitioning!) Eerath Linux - General 6 07-24-2005 12:37 PM
.doc, .xls & .jpg became 0kb paeng16 General 1 07-30-2004 08:21 AM
opening file with .xls on linux shell prompt suchi_s Programming 1 07-28-2004 07:40 AM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration