When logged in from console, following command prevents succsessfully Mac OS X (10.4.9) to go sleep: sudo pmset sleep 0 and you can configure/enable the sleep timout again like: sudo pmset sleep 42 This works flawless if used from console login.
No, if I'm logged in (same user as above) remote, for example using ssh, this does not work. There is always a short timeout (roughly 1 minute) 'til OS X sleeps again.
Why does OS X behave different here? where to configure it or which command to use to inhibit sleep mode?
Note: before logging in from remote, OS X have been waked up using wake-on-lan. So it might have to do somthing with that. If logged in without using wake-on-lan before it works from remote too.