Results 1 to 2 of 2
I would like to create a launcher that will open a terminal to execute the following three commands, and after that the terminal will close automatically, so how to combine ...
- 02-04-2010 #1Just Joined!
- Join Date
- Dec 2009
- Posts
- 3
combine commands in launcher
I would like to create a launcher that will open a terminal to execute the following three commands, and after that the terminal will close automatically, so how to combine these commands to make it? thanks for help.
gksu
cd /usr/share/xxx
svn update
PS: I have tried the following methods, but none works,
1. gksu cd /usr/share/xxx && svn update
2. cd /usr/share/xxx && gksu svn update
3. I create a script s.sh like this
#! /bin/sh
cd /usr/share/xxx
svn update
and put command 'gksu sh /usr/share/xxx/s.sh' (without quotes) in launcher
- 04-01-2010 #2Just Joined!
- Join Date
- Feb 2007
- Location
- LA/Berkeley
- Posts
- 32
gksu can't be used with cd; cd is a shell built-in, not a regular command
I'm pretty sure you don't need to cd to the directory that you're updating with svn; Try:
Code:gksudo svn update /usr/share/xxx


Reply With Quote