Reading and writing from the command line
You can use standard command-line utilities to view the status of objects or to change their attributes.
To read objects, use the cat command. To write to
objects, use echo. Here are some examples.
- Using
catto read -
View the current contents of the Bluetooth status object:
cat /pps/services/bluetooth/statusMonitor the changes to the mpaudio status object as they occur:
cat /pps/services/mm-control/mpaudio/status?wait,delta - Using
echoto write -
Set the pause attribute to
1in the gears control object:echo "pause:n:1" >> /pps/services/gears/controlSet the demo_enabled attribute to
false, overwriting all other existing attributes in the mytest control object:echo "demo_enabled:b:false" > /pps/mytest/control
