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


Click here to return to the 'Use logger' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use logger
Authored by: rohanl on Dec 15, '04 04:22:16AM
Less intrusive than a dialog, is to use logger(1) to log when pbs dies. If you replace the osascript line with:

/usr/bin/logger "Paste Board Server died and was restarted at `date`"
By default, this will just go into /var/log/system.log If you want it a bit more obvious you can make it show up in the console too with:

/usr/bin/logger -p err "Paste Board Server died and was restarted at `date`"


[ Reply to This | # ]