Score:0

Create and run a bash script in an MTP connected smartphone

cn flag

The question explains it all. I connected an android smartphone to pc using USB. Changed directory to internal storage using:

cd /run/user/*/gvfs/*/'Internal Shared Storage'

And now I wanna create a shell script. Did this:

touch test.sh

But it says:

touch: setting times of 'test.sh': Operation not supported

But if I ls again, I see 'test.sh' actually got created. So whatever, I do this to edit 'test.sh' using vim:

vim test.sh

But got this:

cannot open path of the current working directory: Permission denied

Doing sudo outputs the same error. Is it possible to do what I am trying to do?

Andrew T. avatar
tr flag
Cross-posted to Android.SE: https://android.stackexchange.com/q/241596/44325
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.