HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] Automated print-to-fax



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 22.01.2011 16:44, schrieb Don Kelly:

> Printing to the printer on the client system does cause the script to
> execute on the Hylafax server, but I'm seeing some errors:
> 
> "D [22/Jan/2011:06:53:52 -0600] [Job 6] /etc/cups/interfaces/HPFAX:
> Permission denied"
> 
> I was originally thinking the application couldn't access
> /etc/cups/interfaces/HPFAX (-rwxr-xr-x), but now think this may be something
> within the file that causes the permission-denied error.

Hello Don,

you can log all commands and error messages of the script to a file by inserting something like this:

exec 2>>/tmp/logfile
date >&2
echo $0 $* >&2
set -x

at the beginning of the script just after the #! line.

I don't know if stdout of the script is used for any communication. That's why I redirect stderr only.
If you are sure that stdout is not used you can redirect both output channels:

exec 1>>/tmp/logfile 2>&1
date
echo $0 $*
set -x


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk07BG0ACgkQnMz9fgzDSqeOwQCfdYTPfFoX3IbuR6u1q+Ph7KMq
A7kAn23++cw2ZpykESky+pNQV97Su2CU
=MWvg
-----END PGP SIGNATURE-----


____________________ 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@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions