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 02-18-2006, 09:58 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 21

Rep: Reputation: 15
How do i run a program from putty

I have putty on my windows. When I open it and log onto my Linux computer it connect well.
When i go into a Directory and try to run an executable file, i get this error

MYNAME@ubuntu:~/Desktop/MyEXEFiles$ clock &
-bash: clock: command not found
[1] 7487
[1] Exit 127

To run an executable file, isn't all you have to do it type the name of the file in the same dir

I even tried Sudo bash

Thanks for any help in advance

Old 02-18-2006, 09:59 AM   #2
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
./clock maybe?
Old 02-18-2006, 08:29 PM   #3
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
To run an executable file, isn't all you have to do it type the name of the file in the same dir
No. The directory needs to be in your $PATH, if it's not then you can either provide the full path or cd to the directory that contains the file and prepend ./ to the command. Eg.
# or
cd /path/to
Old 02-19-2006, 01:07 AM   #4
LQ Newbie
Registered: Feb 2006
Posts: 21

Original Poster
Rep: Reputation: 15
ok thanks, works fine with ./



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
How do i run this program? trempel SUSE / openSUSE 10 01-06-2006 03:34 PM
run my program alaios Linux - General 6 07-29-2004 06:27 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM
please help me run this program joe blow Linux - Newbie 4 08-08-2003 11:07 AM
want to run my C program........ gurpreetpall Programming 4 03-22-2002 04:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 AM.

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