Solved

shell?

Posted on 2000-02-24
8
441 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
  • 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
Independent Software Vendors: 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 10 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

Industry Leaders: 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!

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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…
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…
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.:

679 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