Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

shell?

Posted on 2000-02-24
8
Medium Priority
?
447 Views
Last Modified: 2010-08-05
1) I was trying to compile the source of a program [ make -f unix/Makefile generic]on one of my machine, I was prompted with the error "Couldn't load shell". I am the root.

2) How can I change from one shell to another? korn to C shell or to borne

3) What is this ? [#!/bin/sh], found in some script files.

appreciate if someone can help me understand this.

Thank you.
0
Comment
Question by:ycgoh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 

Expert Comment

by:arnbws
ID: 2556968
You can change shells using the command chsh provided that the sys admin has added the shell you wish to change to in the /ect/shells directory-- not a problem if you are logged in as root. The chsh command will query you for your password and then the path of the new shell (/bin/bash or /bin/csh forinstance). I hope this helps.

0
 

Expert Comment

by:arnbws
ID: 2556975
arnbws changed the proposed answer to a comment
0
 
LVL 2

Expert Comment

by:jonke
ID: 2557307
1)Don't know how C compiles so cannot answer

2)type ksh to change to  a korn shell. type sh to change to a bourne shell, type csh to change to a c shell. To find out what shell you are currently using type: env |grep SHELL

3)The #!/bin/sh Tells the script what shell to run in:

#!/bin/sh      =run script in bourne shell
#!/bin/ksh      =run script in korn shell
#!/bin/csh      =run script in c shell
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 33

Expert Comment

by:hongjun
ID: 2558124
jonke's comment is helpful.

hongjun
0
 

Accepted Solution

by:
cartoon022100 earned 40 total points
ID: 2558232
HI ycgoh,

You could not load the shell ,because there may be a chance that you are trying to use a shell that is not present in your system.If that is the case ,try using sh/tcsh/ or whatever that u have.

To change shells you can just type ksh or tcsh or other shells that you want use provided those shells are present in your system.check for those shells in "/bin"


The "#!/bin/sh" is normally found in the first line of shell scripts
This is nothing but the location of the shell present in your system.
Given that in the first line informs that ,that particular shell will be used through out the shell script.

Regards,
Inigo
0
 

Author Comment

by:ycgoh
ID: 2558288
Thank guys... so embarassing!
0
 
LVL 2

Expert Comment

by:jonke
ID: 2563948
You just gave the points to someone that gave exactly the same answers as me!

0
 

Author Comment

by:ycgoh
ID: 2565419
Hi Jonke,
I appreciate your comments and you too deserve the points.  

Nevertheless, I have read two of your accepted answers and had transfered some points to you.  I hope you will get it.  Sorry, about not awarding you the points.

Further, can you please take a look at my new question.

Thank you
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question