zl程序教程

您现在的位置是:首页 >  系统

当前栏目

Linux下Bash运行脚本

Linux 运行 脚本 Bash
2023-09-11 14:19:35 时间

命令行应该这样写:

sh -c "脚本字符串"

example:

  sh -c "if ! type dpkg > /dev/null ; then echo 'some messages' fi"