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

Home » Public Forums » archive » Spawning Unix commands from IDL under bash
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Spawning Unix commands from IDL under bash [message #93307] Fri, 10 June 2016 11:20 Go to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I've recently succumbed to peer pressure to switch my (Mac and Linux) shell from tcsh to bash.

Everything is working fine except that I do not have access to the aliases defined in my .bash_profile (Mac) or .bashrc (linux) files when spawning from IDL. For example in my .bash_profile file I have

alias ll="ls -l"

I am able to use this alias at the system prompt but it is not recognized when spawning from the IDL prompt

IDL> $ll (or IDL> spawn,'ll' )
bash: ll: command not found

Note that this is not a PATH problem and IDL> spawn,'ls' does work.


A google search revealed a user asking a similar question 10 years ago
https://docs.astro.columbia.edu/ticket/160

and the "solution" was to use tcsh instead of the bash shell. But there must be some way for bash users to get the same behavior issuing a command from SPAWN within IDL, that they do when issuing the command from the system prompt.

Thanks, --Wayne
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: no text on new graphics - missing path or bad file?
Next Topic: Multi plots conditions

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

Current Time: Wed Oct 08 09:18:19 PDT 2025

Total time taken to generate the page: 0.00442 seconds