LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 05-02-2006, 12:46 AM   #1
arunperi
LQ Newbie
 
Registered: May 2006
Posts: 2

Rep: Reputation: 0
Unable to run "C" program


Hi,

I am Arun, I have written a sample "C" program which compiled, but when I try to run the same, it is not running.

It says: Invalid bash command.

Can anyone please help me out.

Thanks,
Arun.
 
Old 05-02-2006, 01:39 AM   #2
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Maybe your current directory is not in the search path. If the program is called 'foo', try

$ ./foo

instead of just

$ foo
 
Old 05-02-2006, 02:49 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
Don't post the same thing in multiple forums.
 
Old 05-05-2006, 05:40 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

other is here -> http://www.linuxquestions.org/questi...d.php?t=440759
 
  


Closed Thread


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
Unable to run "C" program arunperi Linux - General 1 05-02-2006 01:23 AM
How can you change the default setting for the "Run Command" program? whited Linux - General 6 03-01-2005 12:34 AM
system("top") in a C program giving problems when the C prg is run by cron rags2k Programming 1 09-02-2004 04:25 PM
I lost "Run Program" in Windowmaker tigerflag Linux - Software 3 08-29-2004 06:05 PM
"segmentation fault" when run a simple c program acer_peri Programming 11 05-28-2004 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:48 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