LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-09-2009, 04:34 AM   #1
sriphp
Member
 
Registered: Apr 2009
Posts: 48

Rep: Reputation: 15
catdoc problum


hi all,

this is Srinath.m

on my desktop q.doc file is there. when i run
[root@localhost Desktop]# catdoc q.doc

i am getting

bash: catdoc: command not found

[root@localhost Desktop]# antiword q.doc is also raising same error

please anyone knowns how to run this post me

Thanks
Sri
 
Old 05-09-2009, 04:42 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You simply have to install missing packages. If you run on Fedora, as I guess reading your previous thread, You can simply do
Code:
yum install catdoc antiword
or use the Add/Remove Software application, if you feel more comfortable with a graphical interface.
 
Old 05-09-2009, 04:45 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by sriphp View Post
hi all,

this is Srinath.m

on my desktop q.doc file is there. when i run
[root@localhost Desktop]# catdoc q.doc

i am getting

bash: catdoc: command not found

[root@localhost Desktop]# antiword q.doc is also raising same error

please anyone knowns how to run this post me

Thanks
Sri
Hi Srinath,
Have you installed catdoc? I guess not. You fail to mention what distro your using but on a debian-based system, just do
Code:
sudo aptitude install catdoc
and once catdoc is installed try it again and it will work. The same goes for antiword. Install it in the same way as above (replacing catdoc by antiword in the command.
cheers,
jdk
 
Old 05-09-2009, 04:54 AM   #4
sriphp
Member
 
Registered: Apr 2009
Posts: 48

Original Poster
Rep: Reputation: 15
catdoc problum

hai,

when i run
[root@localhost Desktop]# sudo aptitude install catdoc

i am getting

sudo: aptitude: command not found

where i was wrong

Thanks
Sri
 
Old 05-09-2009, 05:03 AM   #5
sriphp
Member
 
Registered: Apr 2009
Posts: 48

Original Poster
Rep: Reputation: 15
catdoc problum

hai,

i installed sucessfully [root@localhost Desktop]# yum install catdoc antiword.

when i run

[root@localhost Desktop]# catdoc q.doc

i am getting contant along with header info like

X-Apparently-To: v.abc@yahoo.com via 209.191.125.72; Sun, 30 Mar 2008 22:50:59 -0700
X-Originating-IP: [198.104.137.206]
Authentication-Results: mta541.mail.mud.yahoo.com from=careerzeal.in; domainkeys=neutral (no sig)
Received: from 198.104.137.206 (EHLO linuxcp10273.dn.net) (198.104.137.206)
by mta541.mail.mud.yahoo.com with SMTP; Sun, 30 Mar 2008 22:50:56 -0700
Received: from linuxcp10273.dn.net (localhost.localdomain [127.0.0.1])
by linuxcp10273.dn.net (8.13.1/8.13.1) with ESMTP id m2V5ogkE026799;
Mon, 31 Mar 2008 11:20:42 +0530
Received: (from nobody@localhost)
by linuxcp10273.dn.net (8.13.1/8.13.1/Submit) id m2V5og8A026797;
Mon, 31 Mar 2008 11:20:42 +0530
Date: Mon, 31 Mar 2008 11:20:42 +0530
MIME-Version: 1.0
To:
From: ramiya@careerzeal.in
Subject: Urgent Opening-Software Engineer - PHP reg
Content-type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 3436

<div><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1"><font style="line-height: 1" face="verdana" size="2"><strong>Dear Candidate,</strong></font></font></font></font></font></font></font></font></font></ .....


but i want only text part not header info and i want to insert it into mysql table field. i want to do all this process in php. is it possible

Thanks
Sri
 
Old 05-09-2009, 05:12 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
I'm sorry but I don't know PHP. I'd just suggest to update your LQ profile to include the name of the linux distribution you're running on, so that is easy to give the correct hints, even if you don't mention the distro in your post. You've received two different hints in this thread, one for a RPM based distro, like fedora or centos (these use yum to install packages from the command line), one for a DEB based distro like debian or ubuntu (these use apt-get or aptitude to install packages from the command line). Is it clear now why you received a "command not found" when you run aptitude?
 
  


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
DHCP Problum mail2mphani Linux - Server 4 03-25-2009 04:15 AM
Problum Shutting Down Suse 10.1.. hep3005 Linux - Newbie 1 07-15-2006 06:26 PM
Suse 10.0 installation problum!!!!! hep3005 SUSE / openSUSE 1 04-11-2006 07:25 AM
problum with my wi-fi card VERY IMPORTANT syqher Linux - Laptop and Netbook 3 04-30-2004 01:11 AM
network problum with windows2000 prashu_bvp Linux - Networking 1 10-29-2002 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 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
Open Source Consulting | Domain Registration