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

Home » Public Forums » archive » pick up Linux aliases in IDL
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
pick up Linux aliases in IDL [message #92928] Tue, 29 March 2016 10:24 Go to next message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
This might be more of a Linux than an IDL question, but it has been driving me crazy. I've started working on a Linux cluster, and I define aliases in a .cshrc file. One alias might be

alias lt "ls -lt"


These aliases work fine at the shell, but when I get into IDL and spawn the command (IDL>$lt ) it is not recognized.

lt: Command not found

Some additional information:

1. System aliases (those defined in /etc/profile_d) *are* recognized within IDL

2. If I spawn a child process in IDL ( IDL>$ ), then the aliases are again picked up at the system prompt.

3. I have a Linux cluster at my old job, where the aliases *are* picked up in IDL. I have yet to figure out what is different between the two Linux setups.

4. I tried using IDL83 and IDL85 in both command line mode and idlde on the new cluster, and in no case can I pick up my personal aliases. I've also tried using bash (defining aliases in .bashrc) instead of c-shell without success.

Thanks for any help. --Wayne
Re: pick up Linux aliases in IDL [message #92930 is a reply to message #92928] Tue, 29 March 2016 11:24 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Tuesday, March 29, 2016 at 1:24:36 PM UTC-4, wlandsman wrote:

> These aliases work fine at the shell, but when I get into IDL and spawn the command (IDL>$lt ) it is not recognized.

I sort of figured out the answer. I had a line in my .tchrc file to skip the remaining setup if not an interactive shell

if ($?USER == 0 || $?prompt == 0) exit

and the alias commands were located after this. Once you get into IDL there is no longer a shell prompt

IDL> $echo $?prompt
0

and so the shell script exited before defining the aliases. Of course, I figured this out only after posting. --Wayne
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Widget Toolkit
Next Topic: Reducing eps file size for plots with overlaid images?

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

Current Time: Wed Oct 08 09:20:29 PDT 2025

Total time taken to generate the page: 0.00418 seconds