LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2003, 05:37 AM   #1
bandit12
LQ Newbie
 
Registered: Feb 2003
Location: Bristol UK (53rd State of America)
Distribution: RH 8 Gnome / KDE
Posts: 22

Rep: Reputation: 15
Question Well Fax Me


Hi Peeps
anyone got any ideas finaly got my PCI LT-modem dialing using PPP sucessfully on RedHat 8
However I have a new issue now I cant use the Fax!!! [kdeprintfax v1]
I get a error shoving in the logfile as follows

Mime type: text/x-logCommand: enscript -E -p %out %in/usr/share/apps/kdeprintfax/anytops: line 1: enscript: command not found

here is the anytops

#!/bin/sh

FAXFILTERS=./faxfilters
MIMETYPE=

function usage {
echo "Usage: anytops [-m <filters> ] [ --mime=<mime-type> ][ --help ] <infile> <outfile>"
exit $1
}

while true; do
case "$1" in
--help)
usage 0
;;
-m)
shift
FAXFILTERS="$1"
shift
;;
--mime=*)
MIMETYPE=${1#--mime=}
shift
;;
-v)
echo "Anytops v1.0: (c) 2001, Michael Goffioul <goffioul@imec.be>";
echo "Small script to convert any file type into PS. Part of kdeprintfax."
exit 0
;;
*)
break;
;;
esac
done

INFILE=$1
OUTFILE=$2

if [ -z "$INFILE" -o -z "$OUTFILE" -o ! -f "$INFILE" ]; then
usage 1;
fi

if [ -z "$MIMETYPE" ]; then
MAGIC=$KDEDIR
if [ -z "$MAGIC" ]; then
MAGIC=/usr
fi
MAGIC=$MAGIC/share/mimelnk/magic

if [ ! -f "$MAGIC" ]; then
echo "KDE magic file not found. Check your installation."
exit 1;
fi

MIMETYPE=`file -b -m $MAGIC $INFILE 2> /dev/null`
MIMETYPE=${MIMETYPE%%;*}
fi

echo "Mime type: $MIMETYPE"

function get_command() {
while read mime command; do
if [[ $MIMETYPE == $mime ]]; then
echo $command
break;
fi
# PATTERN=`echo $MIMETYPE | grep $mime`
# if [ "$PATTERN" = "$MIMETYPE" ]; then
# echo $command
# break;
# fi
done
}

COMMAND=`cat $FAXFILTERS | get_command`

if [ -z "$COMMAND" ]; then
echo "$MIMETYPE: file type not handled"
exit 1;
fi

echo "Command: $COMMAND"

EXECCOMMAND=`echo $COMMAND | sed -e "s,%in,$INFILE," -e "s,%out,$OUTFILE,"`
eval "$EXECCOMMAND"

can one of you Gurus out there point me in the right direction??
 
Old 03-03-2003, 10:34 AM   #2
bandit12
LQ Newbie
 
Registered: Feb 2003
Location: Bristol UK (53rd State of America)
Distribution: RH 8 Gnome / KDE
Posts: 22

Original Poster
Rep: Reputation: 15
Possible solution

I think I am missing enscript-1.6.1-22.src.rpm
Enscript converts ASCII files to PostScript(TM) and spools
generated PostScript output to the specified printer or saves it to a file. Enscript can be extended to handle different output media and includes many options for customizing printouts.

unless you know different !!!!

 
  


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
Sending fax... redrobin77 Red Hat 2 03-07-2005 03:14 PM
Fax prog Pedroski Linux - Software 0 07-11-2004 04:50 AM
Fax Pedroski Mandriva 1 06-14-2004 04:37 AM
Fax Pedroski Linux - Software 4 05-04-2002 10:09 AM
fax athenerx Linux - Networking 2 04-22-2002 11:41 PM


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

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