begin quoting David Brown as of Fri, Jul 11, 2008 at 06:26:57PM -0700: > On Fri, Jul 11, 2008 at 08:02:33PM -0400, [EMAIL PROTECTED] wrote: > >I need to run some scripts every time I suspend and resume my laptop > >but can't seem to make it work. > > > >I tried adding print statements in some files in /etc/acpi but nothing > >seems to run. > > I would instead try touching files in /tmp or something like that. It is > likely that the scripts will be run with output directed to a log file or > /dev/null.
touch /var/log/user.log (date ; id -u -n ) >> /var/log/user.log If you have logger(1) installed, it's preferable. logger -i -s -- $message -- If using perl, there's also Sys::Syslog. Stewart Stremler -- KPLUG-List@kernel-panic.org http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list