Monday, 15 July 2013

bash - Open several terminals with one click -



bash - Open several terminals with one click -

#!/bin/bash ((n=0;n<3;n++)) gnome-terminal done

this code opening 3 terminals. have asset graphical in ubuntu desktop. when click icon, 1 terminal opens, when close terminal opens, goes on three. when run script in terminal itself, 3 terminals open simultaneously. i'm after, having icon on desktop open them simultaneously.

#!/bin/bash in {0..3}; gnome-terminal & done

& run command in background. (silently fork())

bash

No comments:

Post a Comment