[SOLVED] problem executing scripts

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

[SOLVED] problem executing scripts

Post 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
Last edited by jsfarinet on 21. Nov 2016, 16:48, edited 1 time in total.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: problem executing scripts

Post by laprjns »

Is the script executable?

Code: Select all

$ chmod +x <scriptname>
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: problem executing scripts

Post by jsfarinet »

laprjns wrote:Is the script executable?

Code: Select all

$ chmod +x <scriptname>
Yes.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: problem executing scripts

Post by gapan »

Where is that script located? Post the output of

Code: Select all

mount
and

Code: Select all

file yourscript
Image
Image
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: problem executing scripts

Post by jsfarinet »

I do not know exactly why, but now it works. May be i did not make it executable in the right way (?)
Post Reply