View Single Post
Old 04-29-2010, 01:35 PM   #1
CoolDragon
Addict
CoolDragon doesn't litterCoolDragon doesn't litter
 
Posts: 232
Karma: 122
Join Date: Feb 2010
Device: none
How to start a background process?

What triggered this idea is that my DR800 didn't go to standby/sleep mode last night by itself. All I have been reading is PDF.

It should be useful to keep a record of running processes when the device is on, so that we can at least guess which program/process is preventing the device from auto-standby.

The code can be as simple as:

processlog.sh
Code:
#!/bin/sh
while [ 1 ]
do
  date >> p.list
  ps >> p.list
  sleep 600
done
Can the program shortcut then run the processlog.sh in the background, just by adding "&"?

And will it resume when the device comes out of standby?

I will give it a try....
CoolDragon is offline   Reply With Quote