Welcome to MacForumz.com!
FAQFAQ      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:   
Related Topics:
app termination on logout - I'm writing a background only application that should be terminated when the user logs out. The documentation says: -- Prior to carrying out a log out, restart, or shutdown sequence, the loginwindow application attempts to terminate all foreground and..

Where are "Recent Items" stored? - Hi, This is somewhat of a bizarre request. I am wondering where the "Recent Items" list in OSX (accessible from the Apple menu) is stored. In Classic, this was just a folder with aliases to recently opened Applications and Documents. What I...

NSOutlineView and expanded items - i've got an NSOutlineView that i need to put a really horrific number of items into, perhaps 20,000 as a worst case. right after i read them all from disk and into the data source, i want every item that has children to be expanded. so i wrote this..

Checking/Unchecking Menu Items? - In article <macdev-23E118.04101729012004@senator-bedfellow.mit.edu>, Miro Jurisic &lt;macdev@meeroh.org&gt; wrote: <font color=green> ; ;> > What's the preferred way to Enable/Disable and Check/Uncheck menu ite...

Color menu items? (StatusItems?) - Hey All-- I'm writing software for Jaguar, and I'm wondering if there's a way to set the color that a menu or menu item displays in. More specifically, is there a way to do it for a StatusItem? I see the setAttributedTitle message, but sending a titl...
   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 ]