--- lpr-agent/lpr-agent 2003/06/06 05:12:18 1.1.1.1 +++ lpr-agent/lpr-agent 2003/08/19 20:45:28 1.3 @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # -# Author: Teddy Hogeborn +# Author: Teddy Hogeborn # Folkparksv. 22 # 372 38 Ronneby # SWEDEN @@ -71,7 +71,7 @@ stdout and lets any Python errors show up on stderr -Report bugs to . +Report bugs to . """ sys.exit(0) @@ -103,7 +103,7 @@ tempfile.template="lpr-" + `os.getpid()` + "-" socket_dir=tempfile.mktemp() -# Try and create the directory, but don't fail if it already exists. +# Try to create the directory, but don't fail if it already exists. try: os.mkdir(socket_dir, 0700) except os.error, the_error: @@ -135,7 +135,7 @@ except os.error, the_error: pass -# Try and create an unnamed socket. If we fail we call the cleanup +# Try to create an unnamed socket. If we fail we call the cleanup # function to remove the directory and then call the default error # handler, which should abort. (The file/socket hasn't been created # yet.) @@ -234,10 +234,10 @@ print sys.argv[0] + ": server command: print" smbclientformat = "smbclient \"%s\" \"%s\" -N -P %s %s -c \"%s\"" # service, passwd, ip, options, command - smbserver = "obelix" - smbprinter = "rby_4" + smbserver = "slade" + smbprinter = "rby_expen" smbservice = None - smbserverip = "-I obelix.rby.hk-r.se" + smbserverip = "-I slade.student.bth.se" smbclientoptions = "" smbclientcommand = "printmode graphics;print -" if message.getheader('SmbClientFormat'):