LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-18-2006, 08:58 AM   #1
karpa
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

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

Rep: Reputation: 30
./clock maybe?
 
Old 02-18-2006, 07:29 PM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Quote:
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.
Code:
/path/to/clock
# or
cd /path/to
./clock
 
Old 02-19-2006, 12:07 AM   #4
karpa
LQ Newbie
 
Registered: Feb 2006
Posts: 21

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

Regards
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration