Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Logout items?

 
   Mac (Home) -> Programmer Help RSS
Next:  Problem with Abstract Tree Apple Sample code  
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
Back to top
Login to vote
John Holt

External


Since: Jan 26, 2008
Posts: 6



(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 <Kanhef DeleteThis @mailinator.com> 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
Back to top
Login to vote
Otto van Verseveld

External


Since: May 23, 2008
Posts: 3



(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 <Kanhef.RemoveThis@mailinator.com> 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
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Startup items - Hi, I put my executable in startupitems, it is running successfully on 10.4.10 and earlier, BUT it is failed on 10.5 and shows in log " Untrusted apps are not allowed to connect to or launch Window Server before login. " What might be the pr...

How to type in ASCII? - Stupid question #2 of the week. I'm trying to avoid writing a printer driver for a barcode label printer. It responds to reasonable commands, and I want to embed a command in a page that tells the printer to cut the paper. It's <STX> o STX, of c...

applications and windows - Hello. I'm primarily a system programmer, unix one. Currently I have to implement the following logic: On Mac OS X enumerate all running application only those that are displaying windows. Find which of them is "active", where "active&qu...

[ANN] Vice - Graphical Program Priority Adjustment Tool fo.. - Vice is an application that allows the user to interactively adjust the priority of programs running on Mac OS X. Normal users can lower the priority of their own non-essential programs, while administrators can arbitrarily adjust the priority of any..

NSCursorAttributeName and NSTextView - Well, I've been playing around a little bit with getting URLs in my NSTextView to actually become clickable links. So far, so good. I set the attributes for my attributed strings that get inserted into the text view: NSLinkAttributeName for the link..
       Mac (Home) -> Programmer Help All times are: Pacific Time (US & Canada) (change)
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
Categories:
 Windows Forums
 Game Forums
 Linux Forums
  Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact