|
2010-12-22
, 11:30
|
|
Posts: 1,637 |
Thanked: 4,424 times |
Joined on Apr 2009
@ Germany
|
#372
|
Have you set
to make it runnable? Also, I'm unsure if it's a good idea to use the /bin/sh shebang. Afaik, you should be using /bin/bash and let maemo's symlink to ash work.Code:chmod +x /home/user/delete_syslog_script.sh
The Following User Says Thank You to nicolai For This Useful Post: | ||
|
2010-12-22
, 20:47
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#373
|
|
2010-12-22
, 21:08
|
Posts: 235 |
Thanked: 89 times |
Joined on Oct 2009
@ italy
|
#374
|
Deleting syslog's logfile without doing a reload of syslog daemon is no good idea because the file is still opened by the daemon. You can either rename the file and then force a reload of syslog or you stop syslog, delete the file and start it again.
Another way of preventing root partition from getting filled would be to put logfile to another partition. you can edit /etc/syslog.conf and change path to logfiles. But you should not put it to MyDocs as this may prevent partition from being unmounted and used via usb.
|
2010-12-23
, 19:45
|
Posts: 235 |
Thanked: 89 times |
Joined on Oct 2009
@ italy
|
#375
|
$ touch test1 touch test2 chmod +x test1 test2 vi test1Code:#!/bin/sh rm /home/user/temp2 ~ ~
|
2010-12-23
, 21:32
|
Posts: 235 |
Thanked: 89 times |
Joined on Oct 2009
@ italy
|
#376
|
cat /dev/null > /var/log/syslog
|
2010-12-29
, 05:41
|
Posts: 123 |
Thanked: 99 times |
Joined on Sep 2010
@ Russia
|
#377
|
The Following 3 Users Say Thank You to ForeverYoung For This Useful Post: | ||
|
2010-12-29
, 06:31
|
Posts: 123 |
Thanked: 99 times |
Joined on Sep 2010
@ Russia
|
#378
|
I'm particularly interested to know if the program could be used to start and stop GPodder.....can anybody help me with this?
GPodder will automatically search for and download any podcasts that I'm subscribed to, but only when GPodder is running. If I could get alarmed to open GPodder, say once a week, in the middle of the night, then all of my podcasts could be downloaded without interupting anything else that I'm doing and whilst the phone is in the house and accessing WLAN.
|
2010-12-29
, 16:36
|
Posts: 187 |
Thanked: 345 times |
Joined on Nov 2009
|
#379
|
The Following User Says Thank You to shapeshifter For This Useful Post: | ||
|
2010-12-29
, 18:10
|
Posts: 435 |
Thanked: 769 times |
Joined on Apr 2010
|
#380
|
hi guys, I need an help:
I installed syslog app to monitor my system. problem is that I need to delete /var/log/syslog file periodically otherwise my rootfs partition become full and I've to reflash it.
echo 'rm /var/log/syslog' | root
I should change my script in:
anyway, thak you for your reply shapeshifter
If you found my post useful please thank me, I appreciate!