comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Permanently changing shell
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Permanently changing shell [message #37232] Mon, 08 December 2003 00:54 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Patrick Ford wrote:
> Greetings:
>
> I upgraded to MacOS 10.3 (Panther) last night and IDL got trashed. In
> the processed of reinstalling it, including all the Unix config
> files/scripts, I discovered that the shell had be changed to bash from
> the tsch that it had been. Since my Unix skills are limited and since
> the info pages at rsinc.com are written for the tsch shell I am at an
> impass.
>
> I need to know how to reset the default shell and get the scripts
> reset. I think I do the latter by editing the .cshrc and .tcshrc
> file in the Users/MyDir/ to include:
>
> source RSI-DIR/idl_6.0/bin/idl_setup
>
>
> and/or find out where .bashrc file is and how to set its script for
> the equivalent of the above command.
>
>
> Thanks
>
> Patrick Ford

Dear Patrick

on linux I have always to use ksh (pdksh) to run this install scripts.

If you know it runs with tsch you could run it by

> tsch RSI-DIR/idl_6.0/bin/idl_setup

If this is the only reason to change the shell I think this is not
necessary.

Reimar

--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
Re: Permanently changing shell [message #37239 is a reply to message #37232] Sat, 06 December 2003 13:48 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
pford@bcm.tmc.edu (Patrick Ford) writes:
> Greetings:
>
> I upgraded to MacOS 10.3 (Panther) last night and IDL got trashed. In
> the processed of reinstalling it, including all the Unix config
> files/scripts, I discovered that the shell had be changed to bash from
> the tsch that it had been. Since my Unix skills are limited and since
> the info pages at rsinc.com are written for the tsch shell I am at an
> impass.
>
> I need to know how to reset the default shell and get the scripts
> reset. I think I do the latter by editing the .cshrc and .tcshrc
> file in the Users/MyDir/ to include:

I don't have a Mac, but it is common under unix-like operating systems
to be able to change your shell with the "chsh" command.

It's strange and annoying that the upgrade install would change your
shell, since usually that information is stored in the sacrosanct
/etc/passwd file.

Good luck,
Craig
Re: Permanently changing shell [message #37240 is a reply to message #37239] Sat, 06 December 2003 12:34 Go to previous messageGo to next message
Hugh Wolf is currently offline  Hugh Wolf
Messages: 2
Registered: December 2003
Junior Member
["Followup-To:" header set to comp.sys.mac.system.]
On 2003-12-06, Patrick Ford <pford@bcm.tmc.edu> wrote:
> files/scripts, I discovered that the shell had be changed to bash from
> the tsch that it had been. Since my Unix skills are limited and since
> the info pages at rsinc.com are written for the tsch shell I am at an
> impass.

Open NetInfo, find the entry for your account, change the 'shell'
property to /bin/tcsh. Not as easy as chsh, but simple enough.
Re: Permanently changing shell [message #37413 is a reply to message #37232] Fri, 12 December 2003 16:49 Go to previous message
pford is currently offline  pford
Messages: 33
Registered: September 1996
Member
Reimar Bauer <R.Bauer@fz-juelich.de> wrote in message news:<br1e7r$bk86$1@zam602.zam.kfa-juelich.de>...
> Patrick Ford wrote:
>> Greetings:
>>
>> I upgraded to MacOS 10.3 (Panther) last night and IDL got trashed. In
>> the processed of reinstalling it, including all the Unix config
>> files/scripts, I discovered that the shell had be changed to bash from
>> the tsch that it had been. Since my Unix skills are limited and since
>> the info pages at rsinc.com are written for the tsch shell I am at an
>> impass.
>>
>> I need to know how to reset the default shell and get the scripts
>> reset. I think I do the latter by editing the .cshrc and .tcshrc
>> file in the Users/MyDir/ to include:
>>
>> source RSI-DIR/idl_6.0/bin/idl_setup
>>
>>
>> and/or find out where .bashrc file is and how to set its script for
>> the equivalent of the above command.
>>
>>
>> Thanks
>>
>> Patrick Ford
>
> Dear Patrick
>
> on linux I have always to use ksh (pdksh) to run this install scripts.
>
> If you know it runs with tsch you could run it by
>
>> tsch RSI-DIR/idl_6.0/bin/idl_setup
>
> If this is the only reason to change the shell I think this is not
> necessary.
>
> Reimar
>
> --
> Reimar Bauer
>
> Institut fuer Stratosphaerische Chemie (ICG-I)
> Forschungszentrum Juelich
> email: R.Bauer@fz-juelich.de
> ------------------------------------------------------------ -------
> a IDL library at ForschungsZentrum Juelich
> http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
> ============================================================ =======


I thought I would give the bash shell a try. (Please keep in mind that
I am a unix novice or, in other words, I don't know what I am doing.)
Both methods on how to alter the shell permanently work. Thanks!

Going back the the bash shell, the suggestes cmd line does the
following:

$ tsch RSI-DIR/idl_6.0/bin/idl_setup
-bash: tsch: command not found

idl does have a bash script at idl_6.0/bin


Patrick-Fords-Computer:/idl_6.0/bin patrickford$ more idl_setup.bash
# Bash shell commands to define IDL environment variables and aliases.
#
# This script can be used by IDL users who use Bash as their
interactive shell
# to define the environment variables and aliases required by IDL
# related commands (idl, idlde, idlhelp, idldemo) if the symbolic
links to
# the default directory (/usr/local/rsi/idl) are not being used.
#
# Bash users should run idl_setup from their .profile file
# using the following command:
#
# . /usr/local/rsi/idl_6.0/bin/idl_setup.bash
#
RSI_DIR=/usr/local/rsi
IDL_DIR=/usr/local/rsi/idl_6.0
export IDL_DIR RSI_DIR
alias rsilicense=$IDL_DIR/bin/rsilicense
alias idl=$IDL_DIR/bin/idl
alias idlde=$IDL_DIR/bin/idlde
alias idldeclient=$IDL_DIR/bin/idldeclient
alias idlhelp=$IDL_DIR/bin/idlhelp
alias idlman=$IDL_DIR/bin/idlman
alias idlrpc=$IDL_DIR/bin/idlrpc
alias idldemo=$IDL_DIR/bin/idldemo
___________________________________

Trying a variety of different paths to run it, I get the same basic
message:
$ idl_setup.bash
-bash: idl_setup.bash: command not found

Usually this turns out to be some trivial solution, but I don't yet
know what I am doing wrong here. I thought I could invoke a script by
typing in its name into the shell while I was in that directory.

Clues appreciated. Thanks in advance.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Does IDL have function for pseudoinverse of a matrix
Next Topic: Re: Properties

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:00:48 PDT 2025

Total time taken to generate the page: 0.00614 seconds