joe joe - 1 year ago 160
Bash Question

Raspbian (jessie) open new terminal window

I'm pretty new to Linux / Raspberry PI.

I want to run a command from a shell script in a new shell window since commands like "cvlc music.mp3" (VLC PLAYER) would block the shell until playback has beenn finished.

Therefore it would be nice to export the playback command to another shell

Is this correct?
gnome-terminal && lxterminal don't seem to be an option for the distribution

for testing purpose I created two dumnmy shell-scripts:


--title="MyScriptWindow" \
-e "bash -c ./;bash"\

echo "Hello World"


root@raspberrypi:/home/pi# ./

(lxterminal:1315): Gtk-WARNING **: cannot open display:

Answer Source

If I've understood correctly, you are doing all this only because you want the shell to be released at the execution of your cvlc.

You only need to detach it from shell standard output and run it as a background process

nohup cvlc music.mp3 &

is this enought ?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download