LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Set up an "alias" Command for IDL? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-up-an-alias-command-for-idl-858511/)

msbstar 01-25-2011 06:20 AM

How to Set up an "alias" Command for IDL?
 
Hello Everybody,

I have installed IDL 7.1 on my Ubuntu 9.10. And now the
instruction says that I should set up an "alias" for it.
I do not know what to write in my "bashrc" as an alias for IDL.
These are the place of the executable command of IDL:

/IDL/idl-7.1/bin/idl
AND
/IDL/idl-7.1/bin/idlde

Note that "idl" and "idlde" are the executable files which run
the program by typing them in Terminal.

I would be very grateful if anyone could help me in how to write
an "alias" for my IDL.

With best regards,
Hassan

Nylex 01-25-2011 06:30 AM

alias idl="/IDL/idl-7.1/bin/idl"

You might also want to post the relevant part of the documentation (or post a link to it), so we know exactly what the alias is for. I know that IDL also uses various environment variables, but I'm not sure which of these are required..

You could also consider making a symlink to the executable in one of the directories in your path (e.g. /usr/bin).

msbstar 01-25-2011 06:35 AM

Hi Nylex,

Thanks for replying to my post.

Would you please tell me what this means:

""You could also consider making a symlink to the executable in one of the directories in your path (e.g. /usr/bin).""
And what is alias for?

Thanks.

Nylex 01-29-2011 02:40 AM

Sorry for the delay in replying to this.

Symbolic links are files that point to other files. They're a bit like shortcuts, I guess. The actual executable (for IDL or whatever other program) can live in a directory (say, /opt/IDL/bin for the sake of argument) that may or may not be in your path and you can have a symlink for it in one of the directories that is in your path (e.g. /usr/local/bin), so you can run it without having to give the full path.

Aliases are used to give another name to a command, possibly to allow you to run a certain command with options just by typing your name. For example, I have the alias "ll" for "ls -l" (long listing format for ls).

Hope that helps.

msbstar 01-30-2011 12:04 AM

Hi, Nylex,

Thanks for your helpful comments!

Best regards,
Hassan

Nylex 02-05-2011 10:48 AM

No problem. Is IDL working now? Out of curiosity, what are you using it for?

msbstar 02-06-2011 10:34 AM

HI,

I am using it to reduce some spectroscopic data taken by HIRES/Keck, UVES/VLT telescope.

Nylex 02-12-2011 09:41 AM

Oh cool, astro stuff. I'm a solar person myself :).


All times are GMT -5. The time now is 09:23 AM.