Shell执行脚本并输出日志文件
摘要:shell 错误输出重定向到标准输出 ./tmp/test.sh > /tmp/test.log 2>&1 >和<是文件重定向符。那么1和2是什么? shell中每个进程都和三个系统文件相关联 标准输入stdin 标准输出stdout 标准错误stderr 三个系统文件的文件描述符分别为0,1和2。
        阅读全文
        
            posted @ 2023-06-12 00:19
闲来无事不从容,突然想来写内容; 万一内容有问题,请你口下多留情。 —— ——横批《赐教》
            posted @ 2023-06-12 00:19
            posted @ 2023-04-02 16:12
            posted @ 2021-04-09 11:09
            posted @ 2021-04-09 11:03
            posted @ 2021-04-06 19:31