View Single Post
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 .