Hylafax Mailing List Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
Re: [hylafax-users] Windows/Hylafax
Am 2006.01.14 21:48 schrieb(en) Curtis Vaughan:
Bodo Meissner wrote:
What are owner, group and permissions of the log file and all parent
directories?
What uid and gid does the printfax.pl process have?
I thought about trying to find out what process printfax.pl has went
it's run. But how do I do that?
Hello Curtis,
I assume printfax.pl a perl script.
If you know (or learn) some perl you can do anything you want in this
script.
You can add some debug output like this:
use POSIX;
$uid = POSIX::getuid;
$gid = POSIX::getgid;
$euid = POSIX::geteuid;
$egid = POSIX::getegid;
@groups = POSIX::getgroups;
open TMPLOG,">/tmp/printfax.log";
print TMPLOG "uid = $uid gid = $gid euid = $euid egid = $egid \n";
print TMPLOG "groups = @groups \n";
close TMPLOG;
Look into /tmp/printfax.log after this script has been called.
If stdout of printfax.pl is logged somewhere you can omit the TMPLOG
stuff and simply use:
print "uid = $uid gid = $gid euid = $euid egid = $egid \n";
print "groups = @groups \n";
(There may be better ways to do this. I'm not a perl expert.)
Bodo
____________________ 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*