Senthil360
Senthil360

Reputation: 1

echo to an existing file

When I try to echo via my script to an existing file, the script doesn't recognize the existing file and creates a duplicate file on Android.

This is the input code in script:

>echo "Hello" > /system/etc/new

This is the output in terminal for:

>cat /system/etc/new

/system/etc/new: No such file or directory

Upvotes: 0

Views: 1144

Answers (1)

SwiftArchitect
SwiftArchitect

Reputation: 48514

Are you not experiencing:

Permission denied

At any rate,

echo "Hello" > /system/etc/new

is not allowed to write into /system/etc/.

Likely answered on https://stackoverflow.com/a/550808/218152.

Upvotes: 1

Related Questions