Find the answer to your Linux question:
Results 1 to 2 of 2
So I have no idea how to really use linux or what most of these commands mean/do. That being said, simple responses would be best for me during this rough ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    1

    Not able to use setenv

    So I have no idea how to really use linux or what most of these commands mean/do. That being said, simple responses would be best for me during this rough times of learning this.

    This computer is running Red Hat but I am not sure what version (not my pc), but I am trying to do this...

    ///In your .cshrc file, change your IDLPATH environment variable to have these two directories as the first two items e.g.

    setenv IDL_PATH +/home/john/smart:+/home/john/IRS_Calibration:+/usr/local/lib ///

    I am using some not terribly user friendly software for data reduction and because of some issues I have to make this changes, but I have found that setenv does not work. What do I need to do. And is .cshrc the same thing is .bashrc?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Is your user account configured to run the C-shell (/bin/csh)? Or is it still set to use /bin/bash? If bash, then you need to add this to ~/.bash_profile:
    Code:
    export IDL_PATH="${IDL_PATH}:/home/john/smart:/home/john/IRS_Calibration:/usr/local/lib"
    I don't know what the trailing slashes are for. Also, if you are setting the variable in the C-shell, then you need to add this to ~/.login and not .cshrc:
    Code:
    setenv IDL_PATH "${IDL_PATH}:/home/john/smart:/home/john/IRS_Calibration:/usr/local/lib"
    The quotes are in case there are spaces in the IDL_PATH variable when you add the new path components.

    Also, you spelled the variable name with and without an _, as in IDL_PATH and IDLPATH. Which ever is correct, that is the name you need to use in the commands.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...