Getting error when linked command runs in a script. (Solved)

Using applications, configuring, problems
Post Reply
Message
Author
tcoder
Posts: 20
Joined: Fri 05 Apr 2013, 19:10
Location: Phoenix, Arizona USA

Getting error when linked command runs in a script. (Solved)

#1 Post by tcoder »

When I run a command which is linked to a function within a loaded sfs file from the terminal, it works. When I run that same command from a script, I get "No such file or directory". Here is my bash script:

Code: Select all

#!/bin/bash

mycommand
The script resides in the same directory I run the command from using the terminal. I'm very new to Linux so please be patient with me.

Terry

User avatar
Galbi
Posts: 1098
Joined: Wed 21 Sep 2011, 22:32
Location: Bs.As. - Argentina.

#2 Post by Galbi »

I would try to give the whole path to mycommand.
(to know where the command is, use the comand which)
Remember: [b][i]"pecunia pecuniam parere non potest"[/i][/b]

tcoder
Posts: 20
Joined: Fri 05 Apr 2013, 19:10
Location: Phoenix, Arizona USA

Getting error when linked command runs in a script.

#3 Post by tcoder »

Thanks, that worked.

Terry

Post Reply