I have some commands I would like to run in the following order:
HEADAS=/home/warano/HEASoft/heasoft-6.24/x86_64-pc-linux-gnu-libc2.27
export HEADAS
alias heainit=". $HEADAS/headas-init.sh"
heainit
CALDB=/home/warano/NUSTAR/caldb
export CALDB
source $CALDB/software/tools/caldbinit.sh
I put all of these in a script called run-nu_tools.sh, but it does not work so I got this output:
./run-nu_tools.sh: line 6: heainit: command not found
However heainit works if one runs everything in the terminal(step by step) so I want to run all at once, do you have any tips?