LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-25-2007, 02:50 AM   #1
linux_1
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Rep: Reputation: 0
How to get C-shell reference book??


Hi, Good afternoon.

I am trying to find the reference book about C-shell.
For some reason, we finally have to use C-shell to write the script in the system.
The OS is Linux Entperprise 2.6.9. The software is Genesis 2000, a pcb gerber file editing software.

Although Csh was told as an inconvenient shell to use, but we have to learn it currently in Genesis 2000.
Or someone can help to suggest if Bsh can be used in the environment where Csh runs?

Thank you in advance.
 
Old 09-25-2007, 05:12 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Generally speaking, I'd recommend using the Borne style shells instead of CSH for scripting. The original Borne shell was called "sh", the Free software Borne Again shell is called "bash".

They have similar syntax. There is also the Korne shell, ksh which is widely used, and zsh too, which extends the Borne shell syntax a fair bit, but it not as widely used. There are some others too, including dash and ash.

If you're going to do shell coding on a lot of different Linux systems, bash is a good option for it's ubiquity. It also some fairly nice interactive features (decent tab completion and so on), so if you use it as your day-to-day interactive shell, you can use your shell coding skills to whip up mini-programs on the command line, which can be a huge boon to productivity.

Most systems come with several shells installed by default, and adding more is just a matter of installing them. There shouldn't be a problem with conflicts. It's not even a problem if you use csh for your interactive shell, but code your scripts in bash - when you run a script, a bash process is started to execute those instructions (this is what the #!/bin/bash on the first line of a script does - it tells the OS which program will interpret the rest of the file).

By the way, "Linux Enterprise 2.6.9" is not very meaningful. The 2.6.9 probably refers to the kernel version. The "Enterprise" doesn't fit with this - the kernel is independent of the name of the distribution. I think you probably mean, "Redhat Linux Enterprise Edition, running kernel verrsion 2.6.9", but I could be wrong.

I don't know anything about this Genesis 2000 software - perhaps you can describe it in more detail?
 
Old 09-25-2007, 09:07 PM   #3
linux_1
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you, Matthew.
Yes, you are right. The O.S is Red Hat Linux Enterprise release 4 (Nahant) Kernel 2.6.9-5.Elsmp on an x86_64.
You are also right for the comments of "sh" "Bsh" running in linux O.S.

I will try to test if we can change the original Csh script to sh script.

At same time, would you please provide me some comments about Csh book?

Thank you.
 
Old 09-26-2007, 02:53 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
I've never read a csh book. I've worked with it briefly, but quickly found it was un-suitable for serious scripting through trial and error. Maybe just google for "csh scripting tutorial".
 
Old 09-26-2007, 06:07 AM   #5
linux_1
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, I have done that.

Have a nice day.
 
Old 09-26-2007, 06:20 AM   #6
linux_1
LQ Newbie
 
Registered: Aug 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, I have done that.

Have a nice day.
 
  


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
Reference book for Slackware 10.2 joegumbo Slackware 6 10-09-2006 09:29 PM
A book/Online reference for shell scripting waelaltaqi Linux - General 8 03-08-2006 01:19 PM
Good Reference Book? LinuxConvert-06/05 Linux - Newbie 4 07-02-2005 11:19 PM
Best linux reference book? flamesrock Linux - Software 2 03-13-2004 05:58 PM
looking for good reference book for QT Tafta Programming 1 12-05-2003 05:55 PM


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