LinuxQuestions.org
Help answer threads with 0 replies.
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 05-16-2006, 04:36 PM   #1
acortez
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
How To Run a Program?


I made a simple hello world program to get my feet wet with linux, but I cant seem to run the program. I made the file in xemacs and gcc hello.c -o hello , what else do i have to do to make it run?

Thanks
 
Old 05-16-2006, 04:43 PM   #2
meng
Member
 
Registered: Apr 2005
Location: Rochester, MN
Distribution: Ubuntu 7.04
Posts: 127

Rep: Reputation: 15
What happens when you try to run it?
 
Old 05-16-2006, 04:43 PM   #3
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
what happens when you run it? did you make it executable?
 
Old 05-16-2006, 04:47 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You run the program by doing something like
Code:
$./hello
or entering the full path to the program e.g.
Code:
$/home/user/files/hello
 
Old 05-16-2006, 04:49 PM   #5
acortez
LQ Newbie
 
Registered: May 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Ok Im an idiot I was using just /hello instead of ./hello

Thanks , Im sure Ill have more dumb questions
 
  


Reply


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 to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 08:15 PM
can not run any program yumener Linux - Software 3 01-14-2006 11:05 AM
Run Program? Drakkath Linux - Software 2 09-08-2005 04:04 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


All times are GMT -5. The time now is 06:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration