【问题标题】:shell script to 'make check' multiple times in Pintos在 Pintos 中多次“检查”的 shell 脚本
【发布时间】:2018-11-08 03:34:11
【问题描述】:

现在,我正在与 Pintos 合作,并且 我想通过编写一个 shell 脚本一次做多次'make check'。

我认为是用

制作一个 test-five.sh 文件
#!/bin/bash/

for i in 1 2 3 4 5
do
    make -j 8 check
done

我想运行这个 test-five.sh 文件然后做 测试五.sh > 结果.txt 会好的。

但是,我无法确定我应该将这个文件放在哪个目录,并且 如果这是正确的做法。

【问题讨论】:

    标签: shell pintos


    【解决方案1】:

    这是一个单行 for 循环,计数为 5:

    for i in {1..5}; do echo 'command output'; done
    

    对于您的情况:

    for i in {1..5}; do make -j 8 check; done
    

    【讨论】:

    • 我应该将shell脚本放在哪个目录?在最高目录..?
    猜你喜欢
    • 2018-08-05
    • 1970-01-01
    • 1970-01-01
    • 2015-07-16
    • 2013-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-31
    相关资源
    最近更新 更多