Thread
:
[Announce] SMScon (control your device with SMS)
View Single Post
ivyking
2010-11-01 , 22:49
Posts: 237 | Thanked: 274 times | Joined on Jul 2010
#
451
Is it possible to run a custom command through sms , also instead of only renaming commands in the command list , please add an option to create your own command .
I will give examples ,
1-running direct commands via sms
I want to write an sms like the following :
XXXXXX:echo dummy_message >> /home/user/dummyfile
where XXXXXX is a predefined key that the script scans the message for , to verify the sender .
the script would execute the command after XXXXXX: no matter what it is .
the above commant simply adds a line to a file ,this is just an example , I want to run any command this way .
-------------------
2-creating a custom command
in the commands tab , I want to be able to add a custom command and give it a custom name ,
example , create a command called change_cpu_profile
and the example command would be :sudo kernel-config load starving .
again this is just an example , just need to execute any command .
Thanks a lot for your efforts .
Quote & Reply
|
ivyking
View Public Profile
Send a private message to ivyking
Find all posts by ivyking