The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash recursive scripting James McMurray Shell Programming and Scripting 11 02-02-2009 12:07 PM
Log FILES in BASH scripting jackdaw Shell Programming and Scripting 2 12-05-2007 04:25 PM
Bash Scripting keyvan Shell Programming and Scripting 3 05-23-2007 02:04 PM
Bash shell Scripting help keyvan Shell Programming and Scripting 0 05-15-2007 07:36 PM
Bash scripting doubt xiphias Shell Programming and Scripting 2 04-29-2007 08:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #1 (permalink)  
Old 08-14-2008
macpete macpete is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
Should I do a bash scripting course?!

Hello,

I'm confused (oh, yes). I'm running Linux at work. When I type 'echo $SHELL' I am told that I'm running tcsh. In /bin I note that both tcsh and bash are listed.

Question 1: Can I swap to run bash rather than tcsh and, if so, how will this affect my system? Is there any advantage to this? How do I swap? (Cheeky! Four questions in one!)

Question 2: If I want to develop my scripting skills for use on this system, does it make sense for me to do a bash scripting course?

Thanks,

Pete.
  #2 (permalink)  
Old 08-14-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Quote:
Originally Posted by macpete View Post
Question 2: If I want to develop my scripting skills for use on this system, does it make sense for me to do a bash scripting course?
Advanced Bash-Scripting Guide will help you
  #3 (permalink)  
Old 08-14-2008
djtremors djtremors is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 1
I use bash which is an extended ksh apparently.

to change just use

chsh -s /bin/bash {username}


run `man chsh` to get more info
  #4 (permalink)  
Old 08-14-2008
macpete macpete is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
Thanks for the responses, chaps - very helpful. Can anyone tell me if non-bash scripts would be cause not to operate if I switched to using a bash shell?
  #5 (permalink)  
Old 08-14-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Every shell has there own features, capabilities and usefulness. So it is possible if you have script created in tcsh may not work in bash.

- nilesh
  #6 (permalink)  
Old 08-14-2008
rkruck rkruck is offline
Registered User
  
 

Join Date: Aug 2008
Location: Sterling, VA
Posts: 20
Quote:
Thanks for the responses, chaps - very helpful. Can anyone tell me if non-bash scripts would be cause not to operate if I switched to using a bash shell?
The current shell that you log into doesn't really matter as long as you set the first line in your script to the appropriate shell designated in the first line of your script #!/usr/bin/xxx where xxx is csh, ksh, etc. So you can log into the system using the bash shell and run a ksh shell script by calling the ksh shell in your script.


BTW, the Advanced Bash Scripting Guide mentioned earlier is an excellent resource for learning shell scripting.

Hope that helps...

--Robert

Last edited by rkruck; 08-14-2008 at 04:47 PM..
  #7 (permalink)  
Old 08-15-2008
macpete macpete is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 3
Great stuff. Thanks for the advice - one and all.
Closed Thread

Bookmarks

Tags
bash, tcsh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:58 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0