# Cron jobs

To run crontab jobs one must remount the rootfs writeable:

```
$ sudo mount -o remount,rw /
$ crontab -e
$ sudo mount -o remount,ro /
```

With this I installed a cron job for user 'phablet' which saves every five minutes the current list of all processes to catch this run away / battery drain problem

```
$ sudo crontab -e -u phablet
00,05,10,15,20,25,30,35,40,45,50,55 * * * *   /home/phablet/mon1.sh
```

```
$ cat mon1.sh 
#!/bin/sh

printf "\n\n"                                                      >> /home/phablet/mon.out
date                                                               >> /home/phablet/mon.out
printf "battery capacity%%: "                                      >> /home/phablet/mon.out
cat /sys/devices/platform/battery/power_supply/battery/capacity    >> /home/phablet/mon.out
printf "battery temp     : "                                       >> /home/phablet/mon.out
cat /sys/devices/platform/battery/power_supply/battery/temp        >> /home/phablet/mon.out
top -b -n1 -o %CPU | head -n 20                                    >> /home/phablet/mon.out
```

Last updated: Sun Nov 1 10:12:25 CET 2015


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guru-1.gitbook.io/bq-aquaris-e-4-5-ubuntu-phone/en/chapter20.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
