如何同时运行两个程序,但是当它们位于不同的目录中时? (Tcsh shell)

时间:2021-11-04 20:41:16

https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xpf1/v/t34.0-12/10552001_889617264385887_1227118886_n.jpg?oh=427fdd64a4b7ff8f15436138ee891c12&oe=53CB7A3D&gda=1405839405_dca202c38f41ec98c45bad334e57ad6b

I want to run both of the run.sh files

我想运行两个run.sh文件

I'm really new to Linux so could someone just spell this out for me. I know that I'd have to go into one of the directories and say

我是Linux新手,所以有人可以为我拼出这个。我知道我必须进入其中一个目录然后说

./run.sh & (insert something) &

Could someone help me out please

有人可以帮帮我吗

Would it be something like:

会是这样的:

./run.sh & Parallella/parallella-examples/aobench/./run.sh &`

?

1 个解决方案

#1


1  

You can start the commands like this:

您可以像这样启动命令:

(./run.sh &) && (cd Parallella/parallella-examples/aobench; ./run.sh &)

#1


1  

You can start the commands like this:

您可以像这样启动命令:

(./run.sh &) && (cd Parallella/parallella-examples/aobench; ./run.sh &)