Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

shell-write command problem - How to add a "key" to a plist file via terminal? (iphone,mobileterminal)

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

write "/myPlist.plist" TestKey "TestStringForKey"

but it says: 'write' command not found

The plist EXISTS!

What am I doing wrong?

Is there any other way?

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

EDIT: Some infos: iPod Touch with iOS 4.2.1 and with the newest mobileterminal from googlecode.

EDIT: Now I installed "write". If I run the command i get this: usage: write user [tty]

like image 902
cocos2dbeginner Avatar asked Dec 02 '25 03:12

cocos2dbeginner


1 Answers

I think you want the defaults command:

defaults write "myPlist.plist" TestKey "TestStringForKey"
like image 148
Daniel Dickison Avatar answered Dec 03 '25 15:12

Daniel Dickison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!