0

Maybe my question was partly answered here but I need full solution.

What I want to do is this:

gnome-terminal --tab -x "cd /ini/experiments/ gedit mytext.txt" --tab -e "cd /ini/myex/ipython"

So I need to execute ipython from myex diretory and open mytext.txt from experiments directory. Since I have several such jobs every time, it is headache to do.

I tried this as well: gnome-terminal --tab --working-directory="/ini/experiments/ gedit mytext.txt" but this does not work, it gets to home directory again.

Many thanks

1
  • Where is located ini directory? Is it really in / -root directory or in your home directory? Oct 10, 2013 at 15:37

1 Answer 1

0

If those paths to the directories are corrects as you say, then you should use:

gnome-terminal --tab -e "bash -c 'cd /ini/experiments/ && gedit mytext.txt';$SHELL" --tab -e "bash -c 'cd /ini/myex/ipython';$SHELL"

See also:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .