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 cat to read

View the current contents of the Bluetooth status object:

cat /pps/services/bluetooth/status

Monitor the changes to the mpaudio status object as they occur:

cat /pps/services/mm-control/mpaudio/status?wait,delta

Using echo to write

Set the pause attribute to 1 in the gears control object:

echo "pause:n:1" >> /pps/services/gears/control

Set the demo_enabled attribute to false, overwriting all other existing attributes in the mytest control object:

echo "demo_enabled:b:false" > /pps/mytest/control