Hi
I have to execute the commands in .aliases file from a shell script
I tried
1.giving the alias directly in shell script
2.Giving the actually "value of alias" in the shell script
3. I tried giving both steps 1 and 2 inside ` quotes
Still nothing is working . It says command not found
Any help will be great
sounds like you aren't loading your profile in the shell env used by the script. depending on which shell you use, the command could be
. path/to/.profile
or
source path/to/.cshrc
if you put the correct version of this at the top of your shell script, the shell the script uses should then have awareness of profile settings you're expecting.