Click to See Complete Forum and Search --> : How do I run a program?


halo1941
12-05-2001, 05:56 PM
I am in /etc/games and I see hangman for example. i type hangman and it doesnt recognize command. How do I run a program?

chikn
12-05-2001, 05:57 PM
./hangman

gcb
12-06-2001, 12:57 AM
hangman?! You've got hangman?! I want hangman!

DMR
12-06-2001, 02:20 AM
halo1941,

chikn's solution will work for any program you are trying to run, provided you are in (cd'd to) the directory in which that program lives. The "./" tells the shell to look for the program in your current directory, which (for security reasons) it does not do by default.

If you want a given user (or all users) to have access to the programs in /etc/games, check out this site (http://www.linux-mag.com/2001-06/newbies_03.html), which explains how and where to alter user and global PATH variables to get what you want.