Page 1 of 1

[SOLVED] problem executing scripts

Posted: 19. Nov 2016, 16:40
by jsfarinet
I have a problem to run scripts: The command i'm used to use, './<scriptname>' always turns me: >scriptname> is not a directory. What's wrong there? Or, what am i doing wrong?

TIA

Re: problem executing scripts

Posted: 19. Nov 2016, 17:15
by laprjns
Is the script executable?

Code: Select all

$ chmod +x <scriptname>

Re: problem executing scripts

Posted: 19. Nov 2016, 17:47
by jsfarinet
laprjns wrote:Is the script executable?

Code: Select all

$ chmod +x <scriptname>
Yes.

Re: problem executing scripts

Posted: 21. Nov 2016, 12:27
by gapan
Where is that script located? Post the output of

Code: Select all

mount
and

Code: Select all

file yourscript

Re: problem executing scripts

Posted: 21. Nov 2016, 16:47
by jsfarinet
I do not know exactly why, but now it works. May be i did not make it executable in the right way (?)