Welcome to MacForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Logout items?

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  Automator & Safari  
Author Message
Kanhef

External


Since: Jan 26, 2008
Posts: 1



(Msg. 1) Posted: Sat Jan 26, 2008 12:08 am
Post subject: Logout items?
Imported from groups: comp>sys>mac>programmer>help (more info?)

This message is not archived

 >> Stay informed about: Logout items? 
Back to top
Login to vote
John Holt

External


Since: Nov 23, 2007
Posts: 11



(Msg. 2) Posted: Sat Jan 26, 2008 4:20 pm
Post subject: Re: Logout items? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-01-26 00:08:38 -0500, Kanhef said:

> I'm trying to automatically record how long my computer can run without
> rebooting. (Mostly to brag about it.) Doing this with a small shell
> script:
>
> Kanhef% uptime >> bragTimes.txt
> Kanhef% date >> bragTimes.txt
>
> I know shutdown items haven't been possible in OS X, but since I rarely
> logout except when shutting down, a logout item would work just as
> well. Is there any way of doing this?
>
> My backup plan is a cronjob to record the uptime every hour, but that's
> a messier solution.

You could just extract the information from the system log in the
/var/log directory. Startup and Shutdown events are recorded in the
log.

You could also use the "uptime" command in a Unix terminal window.

There are probably better ways than these, I just don't know of them.

--
John Holt

 >> Stay informed about: Logout items? 
Back to top
Login to vote
Otto van Verseveld

External


Since: Dec 23, 2007
Posts: 2



(Msg. 3) Posted: Fri May 23, 2008 7:53 pm
Post subject: Re: Logout items? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

John Holt wrote:
> On 2008-01-26 00:08:38 -0500, Kanhef said:
>
>> I'm trying to automatically record how long my computer can run without
>> rebooting. (Mostly to brag about it.) Doing this with a small shell
>> script:
>>
>> Kanhef% uptime >> bragTimes.txt
>> Kanhef% date >> bragTimes.txt
>>
>> I know shutdown items haven't been possible in OS X, but since I rarely
>> logout except when shutting down, a logout item would work just as
>> well. Is there any way of doing this?
>>
>> My backup plan is a cronjob to record the uptime every hour, but that's
>> a messier solution.
>
> You could just extract the information from the system log in the
> /var/log directory. Startup and Shutdown events are recorded in the log.
>
> You could also use the "uptime" command in a Unix terminal window.
>
> There are probably better ways than these, I just don't know of them.
>
In a terminal window use e.g. the command 'ac', which gives (on my OSX
10.4.11):

iMac24:~ otto$ ac
total 2207.24
iMac24:~ otto$

By typing 'man ac' in a Terminal you can get more related info, or
parameters. For example when I enter 'ac -d' you'll get the following
output:
iMac24:~ otto$ ac -d
Dec 28 total 2.84
Dec 29 total 5.49
Dec 30 total 0.60
....
May 16 total 9.75
May 17 total 8.42
May 18 total 4.85
May 19 total 4.97
May 20 total 2.00
May 21 total 2.93
May 22 total 3.10
May 23 total 1.99
 >> Stay informed about: Logout items? 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]