小编She*_*ari的帖子

如何从csh脚本重定向stdout和stderr

对于以下脚本

install.csh:

#!/bin/csh -f
tar -zxf Python-3.1.1.tgz
cd Python-3.1.1
./configure
make
make install
cd ..
rm -rf Python-3.1.1

有可能的使用:

./install.csh |& tee install.log
Run Code Online (Sandbox Code Playgroud)

如何更改脚本以便我仍然在控制台上获得install.log和输出而不要求用户进行重定向?

redirect csh

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

csh ×1

redirect ×1