I'm trying to create a script to open a new tab at my rails project and run rails s
inside this tab, to already start my server.
My command:
xfce4-terminal --tab --title="rails server" --working-directory="Documents/projects/rails_blog" --command="bash -c 'rails s';bash"
The new tab open at the correct directory.
But I always get this error:
bash: rails: command not found
I think that rails s
is running before the new tab is opened
or --command
tag expect only bash commands. I don't know
Why is that? And how can I solve this?
I already try all this answers below:
from superuser
stackoverflow - Open a new tab in gnome-terminal using command line
from stackexchange
from ask ubuntu - Open Terminal with multiple tabs and execute application
from ask ubuntu - How to open several Terminal Tabs in different folders (working directories)?