对于以下脚本
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和输出而不要求用户进行重定向?