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


Click here to return to the 'Reset CUPS printers at login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reset CUPS printers at login
Authored by: ReznorB5 on Oct 29, '03 05:07:21AM
While you're at it, just make it a loginwindow script. That way it is run as root already by the loginwindow program without requiring a password (you never should save a password into a script file) and you also never have to see a terminal window or AppleScript applet launching.

http://www.bombich.com/software/lwm.html

Basically, start the first line of a text file with

#!/bin/sh
and put all of those command line things in there after it. Save it in good spot and remember to be sure it has execute permissions by root. See the LoginWindow Manager page for more info.

[ Reply to This | # ]