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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-25-2007, 01:50 AM
|
#1
|
LQ Newbie
Registered: Aug 2007
Posts: 12
Rep:
|
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.
|
|
|
09-25-2007, 04:12 AM
|
#2
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
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?
|
|
|
09-25-2007, 08:07 PM
|
#3
|
LQ Newbie
Registered: Aug 2007
Posts: 12
Original Poster
Rep:
|
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.
|
|
|
09-26-2007, 01:53 AM
|
#4
|
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530
Rep:
|
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".
|
|
|
09-26-2007, 05:07 AM
|
#5
|
LQ Newbie
Registered: Aug 2007
Posts: 12
Original Poster
Rep:
|
Yes, I have done that.
Have a nice day.
|
|
|
09-26-2007, 05:20 AM
|
#6
|
LQ Newbie
Registered: Aug 2007
Posts: 12
Original Poster
Rep:
|
Yes, I have done that.
Have a nice day.
|
|
|
All times are GMT -5. The time now is 04:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|