Mailinglist Archive: opensuse-de (7975 mails)

< Previous Next >
Samba - print command
Hallo!
Ich möchte 2 Scripte mit dem Print command ausführen.
print command = /var/spool/fax/bestaetigung; echo %m > /tmp/print.log;
lpr -P %p %s; rm %s

Das Script:
---
bestaetigung=`cat /var/spool/fax/log/seqf`
echo $bestaetigung >> /tmp/print3.log #----> hier gibst er ein leeres echo
aus, wenn es mit Print command ausgeführt worden ist
echo "- - -" >> /tmp/print3.log
---

wenn ich "/var/spool/fax/bestaetigung" manuell ausführe, dann funktionier
mein Script, wenn es aber von Samba ausgeführt wird, dann schreibt es die
Variable $bestaetigung NICHT in die Datei.
Hintergund ist eine Faxbestätigung an die Clientrechner. (hylafax+samabafax)

Kann mir jemand weiterhelfen?

Gruss Mario Ohnewald


< Previous Next >
This Thread
  • No further messages