![]() |
2012-01-19
, 07:47
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#3
|
![]() |
2012-01-19
, 08:27
|
Posts: 1,680 |
Thanked: 3,685 times |
Joined on Jan 2011
|
#4
|
The Following User Says Thank You to vi_ For This Useful Post: | ||
![]() |
2012-01-19
, 08:45
|
Posts: 569 |
Thanked: 462 times |
Joined on Jul 2010
@ USA
|
#5
|
Did you try, if TimedSilencer can do 'something' for you?
dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile
cat /home/user/.profiled/current
![]() |
2012-01-19
, 21:39
|
Posts: 569 |
Thanked: 462 times |
Joined on Jul 2010
@ USA
|
#7
|
if [ `cat /home/user/.profiled/current` == "silent" ]; then exit 1 fi
I am using a timed shell script which calls play-sound to play clock chimes, the disadvantage of which is that play-sound will always play, even when the phone's profile is set to Silent.
I need something to exit or otherwise control the shell script, along the lines of
if {
IsProfileSilent() == true
} exit;
Last edited by rotoflex; 2012-01-19 at 08:26. Reason: Corrected from reference to "aplay" to "play-sound"