How can I run "source activate" from a bash script as the -e argument to gnome-terminal?
gnome-terminal -e ". /path/to/virtualenv/bin/activate"
When I run this command, I expect a new terminal that has the command
source activate already run. But instead, I get an error in both the current window and the newly created one:
Error: Failed to execute child process "." (Permission denied)
I feel like I am making a simple oversight, or misunderstanding the -e argument perhaps.
Running the command in a bash script or a terminal window gives the same result.
sudo gives the same result, so I'm thinking the permission issue indicates that I am not doing what I think I'm doing with the command above.