LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Programming (https://www.linuxquestions.org/questions/linux-newbie-8/linux-programming-777320/)

Brijesh Kumar 12-21-2009 06:34 PM

Linux Programming
 
Hi All,


I am learning Linux Administration, also I am a RHCE. And want to know about Linux shell scripting.

I want to move towards Linux scripting, so I just want to know that, which programming language is used for scripting mostly in Linux.

And as a beginner which programming language should I start learning.


Is there any institute in India which provides Linux scripting curses?


Thanks in advance


Brijesh Kumar

worm5252 12-21-2009 07:28 PM

You are RHCE and you don't know how to shell script? You are RHCE certified and you're learning system Administration?

How does someone become RHCE and not know these things?

worm5252 12-21-2009 07:29 PM

By The way, most shell sscripts are written in BASH. However I wold look into perl or python scripting as an alternative.

smeezekitty 12-21-2009 08:51 PM

Quote:

Originally Posted by worm5252 (Post 3800533)
By The way, most shell sscripts are written in BASH. However I wold look into perl or python scripting as an alternative.

but its probably best to learn bash first. its the native script.

sundialsvcs 12-21-2009 09:13 PM

I would not agree with the opinion regarding "bash."

Linux/Unix environments give you many scripting tools to choose from: Perl, PHP, Python, Ruby, awk, and many more. All of them can be used to create scripts, because when you execute any command, the shell looks for "#!commandprocessor" (called 'shebang') in the first few characters of the command file. It then invokes the appropriate command-processor.

Realistically speaking, you're going to encounter many different scripting tools in-use, and you're simply going to have to surf the Internet to find out more about each of them. You won't be able to "become an expert" on all of them, but you will need to acquire an awareness of what's going on.

I don't think that you can simply expect to "go to school on it," nor to find "training." The subject is too broad. You need to master self-education. You are going to constantly be confronted with "things that you have never exactly seen before," and you need to master the survival-skill of "always landing on your feet, no matter what."

onebuck 12-22-2009 08:18 AM

Hi,

Guys, bash (bourne again shell). If you are going to script in 'bash' then you had better learn the shell.

Generally speaking a GNU/Linux distribution uses scripting in some form to configure, install or just plain maintain the install. Most admins find the use of scripting initially to perform a required task(s) then if speed becomes a factor then a higher level language is then used to formulate the task(s). Yes, assembly is still used by some but the portability isn't what a 'C/C+' or the like would be.

So for the OP to learn scripting with 'bash' would open doors to most modern GNU/Linux distributions.

Just a few links ;
:study:
Linux Documentation Project
Rute Tutorial & Exposition
Advanced Bash-Scripting Guide
Linux Command Guide
Utimate Linux Newbie Guide
LinuxSelfHelp
Getting Started with Linux
Virtualiation- Top 10

The above links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

cola 12-22-2009 08:21 AM

Quote:

Originally Posted by Brijesh Kumar (Post 3800496)
Hi All,


I am learning Linux Administration, also I am a RHCE. And want to know about Linux shell scripting.

I want to move towards Linux scripting, so I just want to know that, which programming language is used for scripting mostly in Linux.

And as a beginner which programming language should I start learning.


Is there any institute in India which provides Linux scripting curses?


Thanks in advance


Brijesh Kumar

http://www.google.com/search?hl=en&q...&aq=f&oq=&aqi=

CoderMan 12-22-2009 12:31 PM

Quote:

Originally Posted by worm5252 (Post 3800531)
You are RHCE and you don't know how to shell script? You are RHCE certified and you're learning system Administration?

How does someone become RHCE and not know these things?

Very good question, worm5252. Wondering the same thing myself.

If you are mainly doing system admin, I probably recommend bash and Perl as your most powerful tools, though I've heard a lot of employers are looking for Python expertise as well.

If you have time, wouldn't hurt to learn a little C/C++ to help you patch code when necessary.


All times are GMT -5. The time now is 03:39 PM.