Page 1 of 1

Editing the ini file

Posted: Tue Nov 17, 2009 3:18 pm
by niknak
All

i have a need to edit the ini file via command line rather than the UI.

But, i have been unsuccessful in being able to do this with sed on Linux.

Running ubuntu, I putty in , and try a sed in place or sed with temp file. command executes with no errors , file stamp is changed but nothing is edited within the file, irrespective of what i wish to change.

example - i want to sed in place radio=1 to radio=0 , it just cannot be done. What am I missing here and can anyone help with why this would not work?

Re: Editing the ini file

Posted: Tue Nov 17, 2009 8:20 pm
by PeeBee
You cannot edit the ini file when it is in use - Twonky seems to encrypt it somehow so it shows up in vi as garbage although it displays OK by using cat.

The way round this is to make the changes you need via an RPC call:

http://<twonky-ip>:9000/rpc/set_option?radio=0

http://twonky-ip:9000/rpc/get_option?radio will return the current value.

PB