I'm sure this shouldn't be as hard as I'm finding it!
When I log into my machine, i want it to start up a bash shell, in a given directory, open and name some tabs, and start a process in each one.
I think that if i put
in .bashrc and then autostart the bash shell with something like
gnome-terminal --tab -e "bash -c 'rails s'" --tab -e "bash -c 'spork'" --tab -e "bash -c 'autotest'" --tab -e "bash -c 'rails c'" --tab -e 'tail -f log/development.log'
it should work
It doesn't - I get "There was an error creating the child process for this terminal Failed to execute child process 'rails' (No such file ...
rails is in the path - both in the root and the destination directories, and giving the full path doesn't help - the terminal window doesn't open.
Update: The reason this doesn't work as expected is that bashrc does not change the working directory until the commands to start the process have been executed. (i can see this if i do tab -e 'pwd')
So the question is really, how can I change directory and then start the processes running?