I wrote the following#!/bin/bashcd ~/bin/red5-1.0.0gnome-terminal --working-directory=. -x red5.shred5.sh is the script to run (this is java written media server). My script above opens new terminal but with error messageThere was an error creating the child process for this terminalFailed to execute child process red5.sh (No such file or directory)What can be the cause? I am at Ubuntu 11.10
How to create a script, which runs another script in separate terminal window and does not wait?
shell;executable;gnome terminal
The working directory does not affect your $PATH1, thus I guess what's happening can be understood if you do the same thing in a terminal, i.e.$ cd ~/bin/red5-1.0.0$ red5.shwill not work either; what does work is one of the following:$ cd ~/bin/red5-1.0.0$ ./red5.sh            # note the relative path to the scriptor $ cd ~/bin/red5-1.0.0$ export PATH=~/bin/red5-1.0.0:$PATH   # add the path to $PATH which is where $ red5.sh                              # the shell looks for red5.shSo, guessing that gnome-terminal works similar (regarding where it looks for executables), you could probably alter your script in one of these ways, too.1: If your $PATH does not contain ., as Kevin pointed out (How about other relative paths, btw?).