in addtion to mark's response
you also want to make sure it is executable.
you can make it executable by all by using 'chown 755 filename'
or read up on man chown.
also, you want to make sure its in your $PATH. 'echo $PATH' to see what its set to. Based on your shell, you can change it the path to incorporate the full path for that particular file in $PATH and then you will be able to just type
# filename
just like 'ping'.
-A
mark@xxxxxxxxx wrote:
If it is a MS exe, then it probably will not run under linux. If it is a linux binary then like this if you are in the same directory: ./program or supply full path to the binary /home/user/scripts/program
Mark
Quoting bruce <bedouglas@xxxxxxxxxxxxx>:
hi..
i have a executable file in a dir on the hardrive...
what do i have to do (what command) to allow me to simply type the name of the executable from anywhere on the drive, and have the exe run...
searching through google/redhat appears to give a few different ways...
thanks...
-bruce
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list