Question about bash scripting

Stelios Bounanos sb at dial.pipex.com
Wed Sep 4 20:16:01 EEST 2002


 >>>>> On Wed, 04 Sep 2002 15:18:49 +0300, Apostolos Manolitzas
 >>>>> <amanol at ims.gr> was runoured to have said:

 > Geia sas paidia,
 > prospa8w na ftia3w ena mikro script to opoio 8a anoigei ena xterm se ena 
 > sygkekrimeno
 > directory. Dhladh an eimai sto /home/user1/dir1/ , to xterm otan anoigei 
 > 8a phgainei sto
 > /home/user1/dir2/.
 > Pws mporw na to kanw auto?

 > dokimasa kati san

 > #xterm -e "cd /home/user1/dir2/"

 > alla den douleuei.

xterm -e sh -c '(test "$PWD" = "/home/user1/dir1" && cd /home/user1/dir2; exec sh)'

(epishs, merika terminal emulators exoyn switch gia to CWD sto opoio
8a anoiksoyn, px. gnome-terminal2 --working-directory=/some/dir)

 > Euxaristw,
 > Apostolos


Rgds,
/-sb.



More information about the Linux-greek-users mailing list