分类:Scripts

bat后台运行

bat后台运行
运行bat时隐藏cmd窗口的方法 可以编辑一个vbs脚本,在其中以隐藏窗口运行批处理程序。 复制代码 代码如下: Set ws = CreateObject("Wscript.Shell") ws.run "cmd /c 批处理程序名"...

Liemer_Lius 5年前 (2019-07-13) 625℃ 0评论 0喜欢

find进阶

find进阶
find命令有很多功能很实用,但平常用到的比较少,这里做一下整理和总结,以后方便查阅。   查找空文件目录: find / -type f -size 0 // -size指定大小为0 find / -type f -emp...

Liemer_Lius 5年前 (2019-02-14) 1062℃ 0评论 0喜欢

expect实现交互su到root

expect实现交互su到root
有时候需要su到root, 每次输入密码如果嫌麻烦的话, 可以使用以下的方法, 实现自动交互: expect -c " spawn su - expect \"*assword*\" send \"my_passwd\r\" int...

Liemer_Lius 6年前 (2018-10-13) 1002℃ 0评论 1喜欢

shell脚本编译成二进制的方法

shell脚本编译成二进制的方法
作为程序员, 能做开源项目肯定是一种荣耀. 但如果自己的东西实在不好意思开源, 或者存有一点点私心的话, 将自己的脚本封装成二进制, 也是对远吗的一种保护. 下面, 介绍一下编译shell脚本的方法. lius@suse12:tmp>...

Liemer_Lius 6年前 (2018-08-13) 22148℃ 1评论 1喜欢