I'm trying to create a command that will open 3 services from the Rails stack, rails s, spork, and autotest. I can run these commands individually by opening 3 terminals, going to the app folder and running them. I can even open 3 new tabs and run the commands on each.
The problem is that they fail when I try to open the tabs via gnome-terminal like so:
gnome-terminal --tab --title="rails s" -e "rails s" --tab --title="spork" -e "spork" --tab --title="autotest" -e "autotest"
Error (for spork and autotest):
There was an error creating the child process for this terminal
Failed to execute child process "spork" (No such file or directory)
Surprisingly it does work for 'rails s' (the tab shows the server running).
Any ideas?