Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Remove all faxes from queue?



> Is there an easy way to remove all the faxes from the queue besides:
> 
> faxrm 1 2 3 4 5 ... 200
> 
> Can any one help me with an example perl or shell script to loop 
> through the required range and kill each job one at a time?

If you know what the range is, you can do something like:

#!/bin/sh
START=0
END=200

while [ $START -le $END ] ; do
faxrm $START
START=`expr $START + 1`
done

Probably a better way to do this is to operate on the jobs actually in the send
queue:

#!/bin/sh
Q=/var/spool/hylafax/sendq
cd $Q
for x in `ls -1 q* | cut -d q -f 2` ; do
faxrm $x
done


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@hylafax.org.*



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services