0

我一直在用 shell-script 进行文本冒险,但有一次我希望它在运行时打开一个不同的脚本(所以让它们都运行)。我已经研究了大约一个小时,但仍然没有发现任何东西..你能帮忙吗?

例子:

printf "System: Now gathering power needed 1/3"

然后打开脚本

4

1 回答 1

0

像这样的东西应该可以解决问题

 printf "System: Now gathering power needed 1/3" 
 sh other_script

如果 other_script 位于您执行主游戏的同一文件夹中。

于 2014-10-17T10:20:42.427 回答