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] Can I fax to a list of senders ?
Or... Just use the -z option to sendfax, and put the list in a file.
> On Wednesday 31 January 2007 16:48, borgo2000@xxxxxxxx wrote:
>> Can I also use an alias for an addresses list ?
>> For example I'd like to use
>>
>> sendfax <some options> mylist
>>
>> Where mylist is a list of fax numbers
>
> You could try this .....
>
> #!/usr/bin/perl -w
> # (Pd) 2007 by AJS
> use strict;
> my $last_arg = pop || die "Way too few arguments";
> my $filename = pop || die "Too few arguments";
> my @options = @ARGV;
> if (open FH, "<$filename") {
> while ($_ = <FH>) {
> if (!(/^\s*$) && !(/^\s*[#;]/)) {
> s/\D//g;
> system "sendfax", @options, "-d $_", $last_arg;
> };
> };
> close FH;
> exit 0;
> };
> exit 1;
>
> Save it in /usr/bin/ and chmod it 775. Invoke it with all the usual
> sendfax
> options; but omit any -d option. The last two arguments must be the file
> containing a list of recipient numbers (one per line, can include blank
> lines and comments), and the file to send by fax.
>
> --
> AJS
>
> ____________________ 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*
>
>
____________________ 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*