![]() |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Quote:
I should change my script in: Code:
#!/bin/bash anyway, thak you for your reply shapeshifter :) |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
I think /bin/sh is the better way. nicolai |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
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. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
I just tought this possibility but I prefer delete syslog everyday. I'm interested to read it just in case of problem (fortunately not everyday :D). I noticed that if I delete it I've to recreate a new one or wait till next reboot of device otherwise I loose it. In this case I should delete the file and create a new or just delete inside syslog remaining the file. But main problem remain, my script should delete it at prefixed hour:min everyday by alarmed but...nothing happens. syslog still there!! :( |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
I did a test:
Code:
$ touch test1 It's worked!! so, at this point, I suppose problem is with root privileges... now, if following this: http://talk.maemo.org/showpost.php?p...&postcount=278 doesn't work, what is right way to execute command on root files? |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
ok, I'm sure now problem is executing commands needs root.
I modified my script: Code:
cat /dev/null > /var/log/syslog It's works by terminal but doesn't in alarmed. any idea? maybe this problem is related to sudoers? :confused: |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
My little patch:
http://pastebin.com/BKxGY6u7 DONE: - Non-english profiles/names of events, etc. - Removed tweakr profiles, because of ProfileX TODO: - Button captions in alarm (add attr text-domain, https://bugs.maemo.org/show_bug.cgi?id=11729 - Weekly, once alarms to standard alarm list - GUI, I delete event, it remains in list. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
gPodder version 2.11. cli started to work since 2.9 version, if I'm not mistaken. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Everyone, thanks, especially to those submitting patches.
Unfortunately I'm very busy atm so I can't do any work on Alarmed. I hope to get some room in a few weeks and if I can I'll include the patches and implement some of the requested features. Until then, development is stalled. |
Re: [Announce] "Alarmed" scheduling App (supports automatic GPRS data counter resetting)
Quote:
Code:
echo 'rm /var/log/syslog' | root |
All times are GMT. The time now is 07:29. |
vBulletin® Version 3.8.8