Shell-write command problem - How to add a "key" to a plist file through a terminal? (Iphone, MobileTerminal)

I wanted to run this command in mobileterminal (iphone):

write "/myPlist.plist" TestKey "TestStringForKey"

but he says: 'write' command not found

Plis EXISTS!

What am I doing wrong?

Is there another way?

EDIT: TestKey does not exist in plist. I want to create it.

EDIT: Some info: iPod Touch with iOS 4.2.1 and the latest google mobile terminal.

EDIT: Now I have set "write". If I run the command, I get the following:usage: write user [tty]

+3
source share
3 answers

I think you need a command defaults:

defaults write "myPlist.plist" TestKey "TestStringForKey"
+1
source

plist iPhone-. , ericautilities Cydia.

plutil -key ShowedAlert -value nope /dir/ect/ory/to/playlist.plist
+1

/myPlist.plist means that myPlist.plist is in the root directory. I think this is in your current working directory, so just use

write "myPlist.plist" TestKey "TestStringForKey"
0
source

All Articles