Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I'm a newbie to Linux and am attempting to modify my pathway in IDL to allow me to run a data reduction package in IDL. The directions for this ...
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    6

    Pathway Modification in Bash?

    Hi,

    I'm a newbie to Linux and am attempting to modify my pathway in IDL to allow me to run a data reduction package in IDL. The directions for this this process are given for a .cshrc file, but I use a Bash shell. How can these directions be modified to allow me to use them? I've included the directions below. Thanks. -Kathy

    Edit the .cshrc file to include the line

    setenv IDL_PATH +/packagedirectory:$IDL_PATH

    where /packagedirectory is the path to the package directory
    (e.g., /scr0/irtf/Spextool).

    If there is no IDL_PATH defined in the .cshrc file, then include the
    line

    setenv IDL_PATH +/packagedirectory

  2. #2
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    export IDL_PATH='/path/to/IDL:$IDL_PATH'
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  3. #3
    Just Joined!
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    53
    Note that bash doesn't read .cshrc, bash use the files .bash_profile and .bashrc.

    The syntax for setenv VAR value:$VAR in bash is as lordnothing writes.
    export VAR="value:$VAR"

  4. #4
    Just Joined!
    Join Date
    Sep 2004
    Posts
    6

    Export Syntax

    Hi lordnothing,

    Thanks for your reply. But how does

    export IDL_PATH='/path/to/IDL:$IDL_PATH'

    specifiy the path of the external package that I'm attempting to use? (The command for the .cshrc file was setenv IDL_PATH +/packagedirectory:$IDL_PATH )

    Also, how would the line setenv IDL_PATH +/packagedirectory
    read in my .profile file?

    Thanks very much. -Kathy

Posting Permissions

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