maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Script for N900 SMS not saving problem? (https://talk.maemo.org/showthread.php?t=71844)

bandora 2011-04-06 02:23

Script for N900 SMS not saving problem?
 
Hey all,

I am constantly experiencing the problem with the SMS pending / not saving.. The solution that's found here does work but temporarily.

And I'm not a developer, but I am here to ask for help to create a script that will do the same thing that post says automatically instead of typing all that over and over again.. :S

Jw will this work?

Code:

#!/bin/sh

cd /home/user/.rtcom-eventlogger
echo .dump | sqlite3 el-v1.db | sqlite3 el-v1-new.db
mv el-v1.db el-v1-old.db
mv el-v1-new.db el-v1.db
chown user el-v1.db
chgrp users el-v1.db
init 6


bandora 2011-04-06 02:36

Re: Script for N900 SMS not saving problem?
 
Lol I don't think that worked.. I created a smsfix.sh file with that code in there, but it didn't work.

Maybe I should add "sudo gainroot" in there first? I am typing sudo gainroot before I type sh smsfix.sh though.. hmm

figaro 2011-04-06 03:56

Re: Script for N900 SMS not saving problem?
 
what's the error string?
have you tried running it manually on the terminal, one line at a time, and see if it works?

no i don't think sudo gainroot is necessary

bandora 2011-04-06 09:37

Re: Script for N900 SMS not saving problem?
 
Quote:

Originally Posted by figaro (Post 982803)
what's the error string?
have you tried running it manually on the terminal, one line at a time, and see if it works?

no i don't think sudo gainroot is necessary

Yes, line by line works.. But when I put all that in and run it as a ascript it says file or directory not found.. I am now going to sleep, but tomorrow I will tell you exactly what it says.. :)


All times are GMT. The time now is 09:19.

vBulletin® Version 3.8.8