Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
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
Old 04-29-2010, 05:16 PM   #2
CoolDragon
Addict
CoolDragon doesn't litterCoolDragon doesn't litter
 
Posts: 232
Karma: 122
Join Date: Feb 2010
Device: none
OK, here is what I got:

First, you don't need the "&" at the end of the .desktop file. See attached file.

Second, the program will show a "please wait" window for about 30 seconds, then goes back into the background.

Third, it seems to work (to some extent) for me. See the p.list (inside p.zip, cannot upload p.list?) file attached.

One thing I don't understand is somehow this program/script got killed after several minutes. Any ideas?
Attached Files
File Type: tar plog.tar (10.0 KB, 150 views)
File Type: zip p.zip (1,023 Bytes, 142 views)
CoolDragon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
grey background? whopper Calibre 3 08-24-2010 08:08 PM
Classic Is there a way to lighten the background? rlsamson Barnes & Noble NOOK 3 06-30-2010 05:56 PM
lighter background jlinden Amazon Kindle 9 02-18-2010 04:32 AM
Background 'colours' AlexBell Calibre 3 07-15-2009 07:42 PM
Pdf background darker than LRF/RTF background LOL2005 Sony Reader 2 10-23-2007 12:00 PM


All times are GMT -4. The time now is 04:53 PM.


MobileRead.com is a privately owned, operated and funded community.