Results 1 to 8 of 8
Hello,
I want to write a bash script which can open a new gnome-terminal window.
In that gnome-terminal window, it should goto a specific directory and edit a file using ...
- 04-08-2010 #1Just Joined!
- Join Date
- Apr 2010
- Posts
- 5
Bash Script to start Gnome Terminal
Hello,
I want to write a bash script which can open a new gnome-terminal window.
In that gnome-terminal window, it should goto a specific directory and edit a file using Vi Editor.
How is it possible to do that?
Thanks,
Raj.
- 04-08-2010 #2
Type and read:
Code:man gnome-terminal
Debian GNU/Linux -- You know you want it.
- 04-08-2010 #3Just Joined!
- Join Date
- Apr 2010
- Posts
- 5
Dear GNU-Fan,
I read the Man pages and tried to execute these 2 commands-
the Gnome terminal opens, and it says there was error creating child process for this terminal.Code:gnome-terminal --command="cd /usr/src" gnome-terminal --execute cd /usr/src
Thanks,
Raj.
- 04-09-2010 #4
This worked on the command line.
Substitute the path of your own choosing.Code:gnome-terminal -e "vi $HOME/debug/junk/test.file"
- 04-09-2010 #5Just Joined!
- Join Date
- Apr 2010
- Posts
- 5
Thanks sixdrift
it has worked for me too...
though i wanted to know if it was possible to change the directory.
looks like it is not possible.
- 04-09-2010 #6
It is possible if you write a script that does all the sequences you want and then you launch the script using gnome-terminal -e "scriptname"
- 04-09-2010 #7Just Joined!
- Join Date
- Apr 2010
- Posts
- 5
alright !
thanks a lot
- 04-09-2010 #8
There is also an option "working-directory".
Debian GNU/Linux -- You know you want it.


Reply With Quote