Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-04-2004, 10:38 PM   #1
Registered: Apr 2004
Distribution: Debian
Posts: 193

Rep: Reputation: 30
bash question

there must be an easy answer to this....

i can run things from the prompt in bash. if i put the same thing in a file, and then try to run the file, it gives:

-bash: test: command not found

have tried at the top of the file


and nothing at the top, just trying to get echo to work, everything works fine if i just enter it from the $

question is i guess, what do i need to include or put at the top of the file to execute it?

i am in directory when i try this, it has 777 permissions.

Old 08-04-2004, 10:45 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Normally on Linux systems the current directory isn't
in your path for security reasons.

Old 08-04-2004, 10:46 PM   #3
Registered: Apr 2004
Distribution: Debian
Posts: 193

Original Poster
Rep: Reputation: 30
super thx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about BASH operand Linux - Newbie 2 11-27-2005 10:49 PM
Bash Question mbjunior99 Programming 5 08-31-2005 05:33 AM
a bash question about while jiawj Linux - Newbie 3 07-14-2005 12:45 PM
bash question? shanenin Linux - Software 1 11-26-2004 01:22 PM
BASH question tpe Linux - Software 6 11-17-2004 09:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration