View Single Post
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#5
Originally Posted by Zas View Post
Returns "silent" or "general".
Thank you!

How would I capture & compare that string returned within a shell script? I am not very familiar with shell scripting.

-----


Originally Posted by michaaa62
Did you try, if TimedSilencer can do 'something' for you?
Thank you, but I am trying to localize this within an existing shell script.

vi_ : Thank you. I see that
Code:
dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile
also returns the profile, but in a more verbose statement.
I think in this case only the "silent" or "general" returned by
Code:
cat /home/user/.profiled/current
would be easier to work with.