How to run a script under SD target

Asked by Drwd

Hello guys, I want to know how to run my script under SD. Yeah I want to run the script..

But the phone does not allow me to do it: Let me explaint

The script is in SD | I want to run the script by normal partition /home/phablet

So, the SD is:

/media/phablet/BF57-03B0

The script is ipt

So I want to run the script in

/home/phablet

Run the script in SD by /home/phablet

Ubuntu told me permission denied

So I mean, I want to run /media/phablet/BF57-03B0/ipt

By

/home/phablet

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Terminal App Edit question
Assignee:
No assignee Edit question
Solved by:
Drwd
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

cd (change directory) to your target directory, and call the script with its full file name including directory.

Probably something like

cd /home/phablet
/media/phablet/BF57-03B0/ipt

If you get "permission denied", then there is something wrong with the file or device protection settings.
Is the execution bit set on that script?

chmod +x /media/phablet/BF57-03B0/ipt

can help.

Revision history for this message
Drwd (gallito-loquito-2012) said :
#2

Hello Manfred, thanks, but yes I have problem

I did ch mod and run the script by way you said

https://pbs.twimg.com/media/CYyLqj7WkAI6Q9e.jpg

So I don't know what is wrong. Only I want to run the script under SD, help me! Dude lol

Revision history for this message
Drwd (gallito-loquito-2012) said :
#3

Ok I think I find out the solution lol

cd /media/phablet/BF57-03B0 & ipt

And It work fine, thanks guy

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

What is the output of

ls -l /media/phablet/BF57-03B0/ipt

Revision history for this message
Drwd (gallito-loquito-2012) said :
#5

https://pbs.twimg.com/media/CYy-aXAUwAAITVH.jpg

I bypass the permission denied. Im so happy.