all about redirection
if one want to cause output redirection in a script, the script had better start as:
#!/bin/bash
exec &> ./script.log
万物并作,吾以观复。夫物芸芸,各复归其根。 The operation of anything is governed by some rule.
#!/bin/bash
exec &> ./script.log
没有评论:
发表评论