在这里,我想显示一个自动运行的bash脚本,该脚本是我在root登录后尝试通过命令nano ~/.bashrc
编辑.bashrc编写的。我在其中写了su root script.sh
但是我发现必须打开终端手动运行脚本,因此有办法显示自动运行脚本的终端吗?
You can add your command in startup application please refer http://www.techotopia.com/index.php/RHEL_6_Desktop_-_Starting_Applications_on_Login
you need to add "gnome-terminal -e /yourpath/script.sh"
in command name in startup applications.
After adding your command please logout and login again
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.