LinuxQuestions.org
Review your favorite Linux distribution.
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 07-20-2011, 09:05 AM   #1
suddat
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
difference between shell and c programing


please help with this!!!
 
Old 07-20-2011, 09:07 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
You will have to be far, far, far, far more specific.

Other than the fact that they've got completely different syntaxes, you need to compile a c programme into something that can be run by itself, while a shell script is interpreted by another programme (the shell).
 
Old 07-20-2011, 10:08 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Could be a homework problem too.

You won't learn anything by being spoon-fed the answers, so do your own research first. Then if you any questions on specific points, you can come back and we'll help you to understand them.
 
Old 07-20-2011, 11:35 AM   #4
DJ Shaji
Member
 
Registered: Dec 2004
Distribution: Fedora 22 (Twenty Two!), ArchLinux
Posts: 506
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
A shell script is a set of commands that are run in sequence by a shell; a program in any language is a set of instructions that are run directly by the machine (?) when compiled, except for interpreted languages, of course. Ask the mighty Google for more.
 
Old 07-20-2011, 04:40 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by suddat View Post
please help with this!!!
Aside from the fact that they are both programming languages, they have almost nothing at all in common. C is translated into raw CPU instructions, while a shell script is basically a set of commands to run in sequence.

http://en.wikipedia.org/wiki/C_%28pr...ng_language%29

http://en.wikipedia.org/wiki/Shell_script
 
  


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
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 09:30 AM
[SOLVED] udp tcp command line tool for shell script programing golden_boy615 Linux - General 4 02-08-2011 07:22 PM
shell script to find the difference betwwn two file and place the difference to other kittunot4u Linux - General 3 07-19-2010 05:26 AM
Shell programing for ip/mac addition in /etc/ethers file raheelch Programming 1 02-24-2010 02:33 AM
Question of SHELL programing frankli Programming 11 07-01-2005 09:39 PM


All times are GMT -5. The time now is 08:02 PM.

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