#!/bin/sh
PATH=/usr/bin:/path/to/fax/commands
export PATH
FAXSTATUS=`vxfstat -a`
FAXTEST=`echo "${FAXSTATUS}" | grep "not running"`
if [ -n "${FAXTEST}" ]; then
date > /tmp/mailfile
echo "Fax not running." >> /tmp/mailfile
echo "Status =" >> /tmp/mailfile
echo ${FAXSTATUS} >> /tmp/mailfile
fixfax
sleep 3
echo "Status after running fixfax =" >> /tmp/mailfile
vxfstat -a >> /tmp/mailfile
mailx -s "Fax has gone down" user@domain.com < /tmp/mailfile
fi
Replace /path/to/fax/commands with the path to vxfstat and fixfax.
Replace the email address with the one (or more with comma delimiters) that the message should go to.
Call this from cron at suitable regular intervals as the user that can get the status and run fixfax and it may be self healing as well as emailing that the fax queue went down.
looks like this will work. only problem is when fixfax is run it requires you to hit the enter key, is there a way to do that? Could I just leave out fixfax? I really just need it to notify me.
Do you know of any good and inexpensive Fax Software Package that can run on Unix and AIX? I will be using an external Modem attach to one of the system's serial port. I will be using it for sending faxes “only”
Thanks for your help (1 Reply)
Hi all,
I am running an application on Solaris 8. I want to send the output from this application as fax. To achive this i need to do add the fax as a printer on the unix machine.
I want to know is :
- What are the settings required to be done in order to make my server able to send fax... (0 Replies)
hiho,
do you know a hardware vendor which provide certified hardware for sun solaris/sparc with Class 2 or Class 1 compatible faxmodems pci-cards? i found many software for that purpose but no hardware... :( and the hcl on bigadmin only speaks about x86...
thanks a lot
greetings PRESSY (2 Replies)
I would like to build a small fax component in Java or Perl. I have the javax.comm. (rxtx gnu.io) for Java for serial connection and get send a message to my fax were the light goes on and port is taken, but after that I am in the dark.
Does anyone have some reference as to where I can get some... (1 Reply)
Dear Gurus,
I have an application that sends me thousands of small files.
I need to write a script that sleeps for some time untile enough files have arrived then concatenate (n) files into 1 big file, then send that big file to a program to process it.
For example, if I have the following... (2 Replies)
Hi all,
Our application has to send Fax to our cutomer Fax number .
I am using lpr -P faxser:test-fax <<dos format file>>
I tested on our network Fax numbers . Its working fine.
But when i try to send outside our network , its not sending
all files are sitting in... (1 Reply)
Dear community,
what I'm try to do is deny users to run a script without parameters from command bash, but the same script should run without parameters only from crontab.
Example runs by crontab:*/5 * * * * /tmp/script.sh
Here the normal execution starts every 5 minutes
Example #1 runs by... (16 Replies)
I've been trying to send FAXs from an HP_UX server using sendmail via an Esker FAX server. However if I try to include FAX configuration details in the receipient address it fails. See following string for general format... (1 Reply)
Discussion started by: JohnMair
1 Replies
LEARN ABOUT SUSE
faxq
faxq(1) mgetty+sendfax manual faxq(1)NAME
faxq - display fax jobs queued by faxspool(1)SYNOPSIS
faxq [<command>] [-osa] [-v] [-r] [-P<job><prio>]
DESCRIPTION
Display the fax queue set up by faxspool(1).
faxq looks for all the jobs queued by faxspool(1) to /var/spool/fax/outgoing/*. For each job in the queue, faxq displays some status infor-
mations about it. If no options are specified, one line per queued fax job is printed, displaying the job number, sender, number of pages
and target fax number.
COMMANDS
faxq stop stops the fax queue processing by creating the file /var/spool/fax/outgoing/stop. This command works only if you have write
access to the spool directory. Depending on local setup, this means ``root only'' or ``fax administrator group''. If you don't have write
access, an error message is printed.
faxq start re-starts a previously stopped fax queue, by removing the ``stop'' file. As for faxq stop this only works if you have write
access.
OPTIONS -v Tells faxq to print a more verbose report for each job (multiple lines).
-o Show old jobs, already sent but still in the queue directory, too.
-s Show suspended jobs (stopped because of too many fatal errors during sending). You can restart those jobs with faxq -r
-a Show all jobs (active, old, suspended).
-r Restart suspended jobs. Every suspended job in the queue (that you have write permissions for) will be requeued. Use faxrm to
delete jobs that you do not want to be sent!
-P <job> <prio>
Change the priority of fax job <job> to <prio>. Example: "faxq -P F000247 3".
BUGS
faxq doesn't handle time scheduling yet.
faxq -P is currently broken (needs re-implementing with faxq-helper).
SEE ALSO faxrunq(1), faxspool(1), faxrm(1), faxqueue(5)AUTHOR
faxq is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>.
greenie 27 Oct 93 faxq(1)