Active Topics

 



Notices


Reply
Thread Tools
Posts: 89 | Thanked: 52 times | Joined on Jan 2010 @ London, UK
#461
geojoking, did you copy it by copy-and-paste to your phone, and made sure you didn't miss any of it? Or did you do any typing?
Am wondering if one of:

a) the 'if' in the top comments got put onto its own new line and considered a command instead of (as it should be) at the end of the "# Function: " comment line at top
b) its being picky over the ";" immediately next to the "]" on the last if/then/fi block - after the $retrys -lt 5, separate them (though that shouldn't be reason).
c) The comment line lost its "#" just before the "if we connected just for this" online ~31 or so.


Just some thoughts having not tried it/not quite sure of differences between the n900 shell and regular bash shell on another box.
 
geojoking's Avatar
Posts: 159 | Thanked: 53 times | Joined on Jan 2011 @ Romania, Cluj-Napoca
#462
The script was copied by copy-paste to my phone.

I did however delete the "if"s from throughout the script after the comment lines, but it made no difference. I tried adding space from ] to ; , but again, no difference.
 
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#463
This is related more to shell scripts:

After re-flashing my phone, I can no longer execute a shell script.
Calling it in terminal has this result:

Code:
/home/user/scripts/tingtang.sh: line 1:  #!: not found
The script is there with execute, read and write permissions for all.

Last edited by rotoflex; 2011-04-14 at 18:02. Reason: typo
 
Posts: 89 | Thanked: 52 times | Joined on Jan 2010 @ London, UK
#464
It looks to me like the start of your script has got corrupted, the part that often reads "#!/bin/sh" to tell the shell to run it using the shell. Thats my best guess without any more knowledge. Don't think its a permissions thing from the error you got.
 
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#465
Whoops, looks like I had a typo in the post above, the error is
Code:
/home/user/scripts/tingtang.sh: line 1:  #!: not found
I also thought it indicated an error in line 1, so I have tried line 1 four ways:

Code:
#!/bin/sh
#! /bin/sh
#!/bin/bash
#! /bin/bash
I'm really inclined to think that it's something OS related from flashing the FIASCO/rootfs, but I don't know. Is there an OS component that needs to be reinstalled for execution of shell scripts after flashing the FIASCO/rootfs?
 
Posts: 356 | Thanked: 69 times | Joined on Jan 2010 @ Poland
#466
I have strange problem. Months ago I set profiles schedule but later I deleted it. Till now deleted schedule is still active. Where can I find any file that can still have those settings? I think I did it with Alarmed.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#467
alarm_queue.ini, located in /var/cache/alarmd directory.
 

The Following User Says Thank You to nicolai For This Useful Post:
Posts: 235 | Thanked: 86 times | Joined on Dec 2010
#468
I've been experiencing the exact opposite

I have several entries in with time events set to Daily and Cron String. both have been working properly for some time, but recentry those entries using Cron String wouldn't work anymore, but those using Daily/Hourly settings still work
any idea?

here's the sample of Cron I use:
0 13 * * 1,2,3,4
I was expecting this will be triggered every monday-thursday at 1:00 PM. though I believe this is correct since it used to be working and I haven't mess with any of entries in Alarmed

the only thing that came up to me is, recently I've been changing my phone timezone frequently (couple times within a month). and I didn't notice this problem before I messed up with timezone setting

thanks

edit. seems it's working again now. all I did is simply disable and enable all events in Alarmed, and today some of these events have been triggered properly. hope it's all solved now

Last edited by figaro; 2011-05-11 at 06:20.
 
Posts: 24 | Thanked: 5 times | Joined on Feb 2011
#469
alarmed never resets my GPRS data. Where can I see the logs cuz I have no idea why it's failing.
 
bigears5000's Avatar
Posts: 468 | Thanked: 775 times | Joined on May 2010 @ Hereford, England
#470
I recently wanted to start using alarmed, so installed it. Shortly after, I noticed that all my widgets had disappeared (including: all queen beecons, max cpu, desktop switcher, battery, homescreen dockbar and ironcope.) So I went through putting them all back on my screen. Later on, I actually saw all of them disappear before my eyes. It was a real pain, as I have a lot of widgets to replace. So I uninstalled alarmed, and it hasn't happened since. I hadn't even used alarmed, so it wasn't running a hildon killall or something like that. Also, it was the only new thing I had installed in weeks, so it must have been this. I have kernel power 47. Just wondered if anyone else has experienced something like this. Thanks.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:34.