Exec format error

Anonymous anonymous at easysw.com
Mon Jun 21 08:02:24 PDT 2004


Hi,
I have setup a print queue called rap with the following commands:-

/usr/sbin/lpadmin -prap -v/dev/null -i /etc/cups/wrapper.sh
/usr/bin/enable rap
/usr/sbin/accept rap


The log file is telling me this, any ideas anyone?
D [21/Jun/2004:15:43:53 +0100] StartJob: filter = "/etc/cups/interfaces/rap"
D [21/Jun/2004:15:43:53 +0100] StartJob: filterfds[0] = -1, 9
D [21/Jun/2004:15:43:53 +0100] start_process("/etc/cups/interfaces/rap", 0xbfffa4e0, 0xbfff9990, 8, 9, 7)
I [21/Jun/2004:15:43:53 +0100] Started filter /etc/cups/interfaces/rap (PID 28826) for job 57.
D [21/Jun/2004:15:43:53 +0100] [Job 57] /etc/cups/interfaces/rap: Exec format error
E [21/Jun/2004:15:43:53 +0100] PID 28826 stopped with status 22!
D [21/Jun/2004:15:43:53 +0100] UpdateJob: job 57, file 0 is complete.



The file /etc/cups/wrapper.sh looks like this:-
#!/bin/sh
command=/etc/cups/raptor_script.sh
exec $command "$@"

The file /etc/cups/raptor_script.sh looks like this:-
#!/bin/sh
#
#
# This is the raptor filter script which is used to rasterize data before passing it
# to the plotter.  Use the wrapper script to avoid having to run lpadmin every time
# this file is modified.
#
#
#
#
# Please set the following variables
#-------------------------------------
# plot_queue=< name of the plotter queue >
plot_queue=hp500
#
# path_append=< path to the directory above the platform directories containing the exes>
path_append=/software/cadence/ic5033/tools/plot/bin
#
# logfile=< fully resolved path to the logfile >
logfile=/tmp/marklog
#
# Determine the platform we are on
#---------------------------------
OSREV=`uname -r`
export OSREV
OSNAME=`uname -s`
export OSNAME
if [ $OSNAME = "SunOS" ] ; then
        PLATFORM=sun4v
        export PLATFORM;
elif [ $OSNAME = "Linux" ] ; then
    PLATFORM=lnx86
        export PLATFORM;
else
    PLATFORM=hppa
        export PLATFORM;
fi
#
# Set the path
#-------------
# Update the path to include the installation directory for the raptor and
# RTLout execuatbles
#PATH="/bin:/usr/bin:/usr/lib:$path_append/$PLATFORM"
PATH="/bin:/usr/bin:/usr/lib:/software/cadence/ic5033/tools/plot/bin"
export PATH
#
# Print some information to the logfile
#---------------------------------------
echo "------------------------------------------------------------------------" >> $logfile
date >> $logfile
echo "------------------------------------------------------------------------" >> $logfile
echo ""
echo $0 >> $logfile
echo $1 >> $logfile
echo $2 >> $logfile
echo $3 >> $logfile
echo $4 >> $logfile
echo $5 >> $logfile
echo $6 >> $logfile
echo $7 >> $logfile
#
# Redirect standard error to a file.
#-----------------------------------
exec 2>>$logfile
#
#
# Get to work
#------------
shift;shift;shift;shift;shift
DATA_FILE=$1
raptor -p -v -x wtob -k 2 $DATA_FILE | RTLout -f rtl -c rle -v | lp -d$plot_queue
# Command line versions of above are:
#sun4v/raptor -p -v -x wtob -k 2 -o <file>.raptor <input file>
#sun4v/RTLout -f rtl -c rle -v <<file>.raptor> <file>.RTLout

# All done









More information about the cups mailing list