Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Create a virtual PDF printer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create a virtual PDF printer
Authored by: johnpateman on Oct 29, '05 07:00:40AM

This is a great hint and works really well. I have one problem though - the owner of the file stubbornly remains as root. I have checked through the tail end of the code and inspected the logfile but no avail. The log file shows $2 as my corrrect username. The chmod step works fine, $2 is obviously !="" so can't understand while file remains root:staff. This is really relativly minor but a real annoyance! I see this problem has been reported previously.
Any advice?



[ Reply to This | # ]
10.4: Create a virtual PDF printer
Authored by: Dezro on Mar 14, '06 08:44:49AM

This is a little late, but change the chown line to:
/usr/sbin/chown $2 $OUTPUTFILENAME

Apparently /usr/sbin isn't in the printer thing's $PATH.



[ Reply to This | # ]
10.4: Create a virtual PDF printer
Authored by: despu├ęs on Mar 27, '07 01:00:28PM
I changed
chown $2 $OUTPUTFILENAME
to
/usr/sbin/chown $2 $OUTPUTFILENAME
and it worked. (Better than giving rights to everyone.)

[ Reply to This | # ]