1 Star 0 Fork 0

qiushuang/sync

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nie1.csh 617 Bytes
一键复制 编辑 原始数据 按行查看 历史
qiushuang 提交于 2015-12-07 23:00 . first commit
#!/bin/csh
set dir="File-to-be-deleted"
set time_stamp=`date "+%Y%m%d_%H%M_%S"`
set LOG="~/nie.log"
echo "sleep 1" > ~/nie.$time_stamp
echo "/bin/rm -rf $dir" >> ~/nie.$time_stamp
echo 'echo "----------------------------" >>' "$LOG" >> ~/nie.$time_stamp
echo 'echo `date` >>' "$LOG" >> ~/nie.$time_stamp
echo "echo the tmp file: >> $LOG" >> ~/nie.$time_stamp
echo "echo $dir >> $LOG" >> ~/nie.$time_stamp
echo "echo has now been deleted! >> $LOG" >> ~/nie.$time_stamp
echo 'echo "----------------------------" >>' "$LOG" >> ~/nie.$time_stamp
tcsh nie.$time_stamp > /dev/null &
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/ic_design_verifcation/sync.git
git@gitee.com:ic_design_verifcation/sync.git
ic_design_verifcation
sync
sync
master

搜索帮助