|
2012-05-11
, 02:59
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#2
|
The Following 3 Users Say Thank You to Estel For This Useful Post: | ||
|
2012-05-11
, 03:10
|
|
Posts: 1,359 |
Thanked: 1,292 times |
Joined on Oct 2011
@ Tartus.Syria
|
#4
|
|
2012-05-11
, 03:13
|
|
Posts: 92 |
Thanked: 74 times |
Joined on Nov 2008
@ Indonesia
|
#5
|
its &&
so:
command1 && command2
But, shell scripts doesn't bite, and sometimes && may not work for You - i.e. in cases, where finishing command1 is required for command2 to function properly. Of course, You may do some command1 && wait 2 && command2, but it's starting to look like too much hassle/ugly code.
|
2012-05-11
, 07:29
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#7
|
The Following 8 Users Say Thank You to reinob For This Useful Post: | ||
|
2012-05-11
, 10:26
|
Posts: 2,802 |
Thanked: 4,491 times |
Joined on Nov 2007
|
#8
|
$ command1 & command2
Something along the lines of
Do this | Do that
I am trying to avoid using a shell script, & hoping there is some way to concatenate two commands on one command line.