HylaFAX The world's most advanced open source fax server |
I've found the correct syntiax. There was an error on sed. Besides of missing variable substitution, there is also the problem that Recvq_tts1 is a SUBdirectory of recvq Well, the first part "recvq" were missing. This now works for me NEWFILE=`echo $FILE | sed s/recvq/recvq_$DEVICE/g`; cp $FILE recvq/$NEWFILE; FILE=$NEWFILE; I removed commas from sed and added recvq on second line. Apart this, I would prefere to MOVE file instead of copy. Do you see any catch in this? Besides, now I need a windows client that let me configure the directory ttS1 for user 1 and ttS0 for user 0. This way every user could see only their files send or received. How can I do this? thank you! Regards. > From: pinco_pallo_@xxxxxxxxxxx > To: faxguy@xxxxxxxxxxxxxxxx > CC: hylafax-users@xxxxxxxxxxx > Subject: [hylafax-users] R: R: sorting based on tty > Date: Fri, 25 Jun 2010 17:30:55 +0200 > > > -----Messaggio originale----- > Da: Lee Howard [mailto:faxguy@xxxxxxxxxxxxxxxx] > Inviato: venerdì 25 giugno 2010 07:06 > A: max > Cc: hylafax-users@xxxxxxxxxxx > Oggetto: Re: R: [hylafax-users] sorting based on tty > > max wrote: > > What do you mean by " run the bin/faxrcvd command line as-given in the > > session log"? > > Do you mean perhaps that after EVERY modification of this file there is a > > command > > to launch to finalize all operations? > > No. I mean you can manually simulate the operation that goes on > automatically with fax reception simply by re-running the command > as-seen in the session log from the /var/spool/hylafax directory. > This > will allow you to see if you have any error in your scripting. But > if > that works, and then it does not work automatically when a fax is > received, then it generally means that there is some kind of > permissions > problem (as faxgetty/faxrcvd does not typically run with root > privs). > > Thanks, > > Lee. > > Found... > [root@backup hylafax]# /var/spool/hylafax/bin/faxrcvd > "recvq/fax000000011.tif" "ttyS1" "000000014" "" > FILE 1: recvq/fax000000011.tif > Converting recvq/fax000000011.tif to PDF > Using tiff2pdf > cp: impossibile creare il file normale `recvq_$DEVICE/fax000000011.tif': No > such file or directory > > Notice that the script isn't able to make the correct substitution for the > variable DEVICE > > And this is due to ' (quote) character inside NEWFILE definition that deny > variable substitution > > NEWFILE=`echo $FILE | sed 's/recvq/recvq_$DEVICE/g' `; > > How can I do? > Thanks > Regards. > > > > > > ____________________ 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* > Un mondo di personalizzazioni per Messenger, PC e cellulare, scaricale gratis! |