LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-04-2004, 10:38 PM   #1
rjcrews
Member
 
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

#!/bin/bash

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.


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

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


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

Original Poster
Rep: Reputation: 30
super thx
 
  


Reply


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


All times are GMT -5. The time now is 09:24 AM.

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