a program which linux things is a directory??

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers a program which linux things is a directory??
# 1  
Old 06-16-2002
a program which linux things is a directory??

Well I finally got around to installing linux [openlinux], the install went fine. I have just tried on to install some software.It gunziped and untared fine. It even complied fine[at this stage i was most proudSmilie]. However when I try to run the program. I get the message "bash:[programname] is a directory". I have tried changing the permission on the file and also tired running the program as su, nothing seemes to help.
Do i need to change the $PATH variable?
Has anyone got any idear what is causing this strange behaviour?
# 2  
Old 06-16-2002
that's because after you untar the file a directory is created. You have to go into that directory not run it. read the installation notes, it helps a lot.
# 3  
Old 06-17-2002
you must do de change directory command, cd yourdirecory!
# 4  
Old 06-17-2002
<sarcasm> inspired answers </sarcasm>

rite first: mr Luftwaffe
ii] I am well aware that untar prduces a directory, and yes i went to the directory,
Rite ur turn mr adme
i] i tried that and it said "bash:[programname] is not a directory"
and i'm assuming de is meant to mean the

Any other ideas?
# 5  
Old 06-17-2002
Please lose the sarcasm. These people are trying to help you; and adme, whose location is Switzerland, may be struggling with a second or third language to do it.

Even though you have cd'ed into a directory, bash won't look there unless . is on your path. I'll bet that your home directory is on your path, so bask looks there and sees the directory. You can verify this by typing:
type <program-name>
to see which file bash is trying to run. I would just type:
to run a program in the current directory. Adding . to your path is not wise.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trying to make a bash script that goes through directory files and changes things

I'm trying to write a script in a directory that goes through the column the user specifies of 4 files that are inside the directory and calculates the min and the max values. This means that if the user specifies column 5, the script will go through column 5 of all 4 files and all that should give... (2 Replies)
Discussion started by: Eric1
2 Replies

2. UNIX for Dummies Questions & Answers

Remove all things from directory

Which command will be good to use when I want to remove all files and directories from the directory (i want to have empty derictory). Sorry for my English :p ... (3 Replies)
Discussion started by: WrzaSQN
3 Replies

3. UNIX for Dummies Questions & Answers

Help with a few misc. admin things. LINUX

Hey guys, I've been doing some study guides and practice exams for some certs, had some friends give me some things to do in preperation as well. I have compiled a few of the questions I was unable to figure out:wall:, I was hoping to get some help here. I am running Fedora16. If you need any... (2 Replies)
Discussion started by: jahburmski
2 Replies

4. Shell Programming and Scripting

[SOLVED] <<EOT to program in different directory

Hello, I am new to shell scrip. I have written a .sh file that goes ./myprogram << EOT 14 file.name EOT and works as expectecd - it passes 14 and file.name to the program being run as it askes for command line input. When I try and keep myprogram in a different directory and do the same... (4 Replies)
Discussion started by: jimbo_cambridge
4 Replies

5. UNIX for Dummies Questions & Answers

Find the directory in which a program is running

Hi, I'm wondering if this is possible. I run several FORTRAN programs in different directories that have the same name (say program_X). I use the command 'top' to find the programs running and the time taken. I'm wondering if it's possible to the directory in which these programs are... (1 Reply)
Discussion started by: lost.identity
1 Replies

6. OS X (Apple)

Installation directory structure for downloaded program

OS X 10.3.9 I downloaded RealPlayer into my ~/download folder, clicked install and everything works just fine. My question has to do with just my trying to understand where OS X keeps the files. So, I opened terminal and said: find / -name RealPlayer 2>/dev/null To my utter... (0 Replies)
Discussion started by: migurus
0 Replies
Login or Register to Ask a Question