LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 10-17-2005, 03:41 AM   #1
gadekishore
LQ Newbie
 
Registered: Sep 2005
Location: india
Distribution: rhel 3.0
Posts: 21

Rep: Reputation: 15
difference between shell scripting and c language


Hello

any body can assist me, iam planning to learn shell scripting usefull for linux. i want to know by whether shell scripting and c language are same or different.

tnx
 
Old 10-17-2005, 03:54 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Very different. Shell scripting is just that, scripting. All POSIX shells support the scope of that standard plus their own little extensions or improved functionality. Scripting means the code is interpreted at run-time. C is a compiled language, much stronger and more advanced than shell scripting and being a compiled language means that you write the code, compile it into machine code and then it's run. Much quicker than scripting languages. Here are some links which should clear some stuff up

http://en.wikipedia.org/wiki/Scripting_language
http://en.wikipedia.org/wiki/Language_compiler
 
Old 10-17-2005, 03:55 AM   #3
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
they are very different. Shell scripts can not be used for very complicated programs, while C can be used for anything.
Shell scripts are quicker to write and would be used for eg writing a program to back up all new files every hour.
C is the language used for the Linux kernel and a lot else.
 
Old 10-17-2005, 03:56 AM   #4
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
they are different

even a noob like me can write a shell script

heres how to shell script, if your in a reading mood

http://rute.2038bug.com/node10.html.gz
 
Old 10-17-2005, 05:50 AM   #5
gadekishore
LQ Newbie
 
Registered: Sep 2005
Location: india
Distribution: rhel 3.0
Posts: 21

Original Poster
Rep: Reputation: 15
which one is the best , then you guys prefer. i need to use for scripting in linux environment. if iam going through 'c' is it ok
 
Old 10-17-2005, 06:33 AM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally posted by gadekishore
which one is the best , then you guys prefer. i need to use for scripting in linux environment. if iam going through 'c' is it ok

What do you need to do with it? The sign of a good programmer is the willingness to use the correct tool for the job. There are many task better suited towards your favorite scripting language and there are many tasks best suited to a programming language like C.
 
  


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
Shell Scripting: Getting a pid and killing it via a shell script topcat Programming 15 10-28-2007 02:14 AM
Which Scripting Language? birdseye Programming 2 10-03-2005 09:54 AM
what is the difference between Scripting language and Normal Languages ? indian Programming 5 03-15-2005 03:10 PM
Choosing a scripting language joeljkp Programming 5 10-27-2004 04:36 PM
Favorite scripting language rverlander General 8 09-02-2002 05:06 AM

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

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