linux - 如何在linux中创建一个autorun文件并执行一个shell文件?

标签 linux unix ubuntu redhat autorun

如何在 linux 中创建一个类似于 Windows 中的 autorun.inf 的自动运行文件以执行 shell 文件即以下是要求

1.自动运行安装文件./example.sh

当 CD 挂载到系统上时。

最佳答案

这是不可能的。风险太大了。您当然可以在各种变体中为您自己的系统执行此操作。例如 cronjobs。但我想你希望它在任何其他系统上运行......

关于linux - 如何在linux中创建一个autorun文件并执行一个shell文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3802752/

相关文章:

mysql - 无法锁定 ./ibdata1,错误 : 11

使用 ptrace() 取消系统调用

linux - 拆分和删除文件?

unix - 在unix中获取逗号分隔的不同值

sql - 从 beeline(cli) 将表导出到 csv

c - C中data段和bss段的区别

python - 如何在 linux 终端中运行更新的 python 脚本

html - 获取 CLI 工具的 Linux 终端输出并显示在网页中

arrays - 程序给出信号 SIGABRT : Process abort signal in one code and does not in other code

python - Ubuntu Python : unable to pip install dlib - Failed building wheel for dlib and machine is almost stuck