?
Solved

shell?

Posted on 2000-02-24
8
Medium Priority
?
444 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

770 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