NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
You should have looked harder :) (Score:1)
Re:You should have looked harder :) (Score:2)
Reply to This
Parent
Re:You should have looked harder :) (Score:1)
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
this was in my system log.
Apr 27 03:15:02 macjerry syslogd: restart
Apr 27 03:15:03 macjerry kernel: ApplePMUUserClient::setProperties AutoWake 0x00000000
Apr 27 03:15:03 macjerry kernel: ApplePMUUserClient::setProperties AutoPower 0x00000000
Apr 27 03:15:03 macjerry kernel: ApplePMUUserClient::setProperties AutoWake 0x00015123
Apr 27 03:15:03 macjerry osascript: LaunchApplication(/System/Library/CoreServices/System Events.app)
Apr 27 03:15:59 macjerry
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
Let's try a photosensor looking at the screen, when activated
by the wakeup, cut current to electromagnet holding weight
above keyboard, yeah that ought to do the trick
I have not tried (at any time) system events, do you think
simulating a key press would do the trick?
Jerry
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
#include
main() {
UpdateSystemActivity(OverallAct);
return 0;
}
He said it "might" work.
I got my full fifteen minutes last night...
Jerry
Re:You should have looked harder :) (Score:1)
// cc -o keypress keypress.c -framework Carbon
#include <Carbon/Carbon.h>
main() {
UpdateSystemActivity(OverallAct);
return 0;
}
Jerry
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
protected screensaver, if a password is not entered in 90 seconds, the machine will go back to sleep.
Jerry
Re:You should have looked harder :) (Score:2)
But how do I get that entered when the machine wakes up?
Re:You should have looked harder :) (Score:1)
to my
which is in turn executed by periodic
/usr/bin/mail -s Crontab jerry <<DOC
Cron ran at `date`
`/usr/local/bin/dailyWakeup`
`/usr/local/bin/keypress`
DOC
dailyWak eup queues a request for the following night, the
keypress code evidently extends the session.
Tonight I am going to create a 400.mystuff file that simply
executes the
it into
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
have that much extra to do...
However I am starting to do weekly backups of some big
folders and that is why I am going to have a seperate file
containing code that will execute the keypress function and
have periodic execute this file just before any of the longer
jobs...Are we on the same page?
dailyWakeup queues an event that causes the system to wake
a little before cron fires.
cron fires and executes a script that contains the keypress function. (
Re:You should have looked harder :) (Score:2)
That's the part that concerns me. Last night, the machine wasn't even awake long enough for the clock in the GUI to update. I guess I can try setting them a minute apart and see what happens.
Re:You should have looked harder :) (Score:2)
Re:You should have looked harder :) (Score:1)
#!/bin/sh
/usr/local/bin/keypress
and dumped it into
/etc/periodic/{daily | weekly | daily} ( and made sure it is executable )
It fired first when cron started and I got my 15 minutes of fame.
http://homepage.mac.com/Cocoa for the whole story/package
Jerry
Re:You should have looked harder :) (Score:2)