LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-20-2011, 08: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, 08:07 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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, 09:08 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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, 10:35 AM   #4
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
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, 03:40 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
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



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

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

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