+ -
当前位置:首页 → 问答吧 → 怎样让一个脚本在启机时自动运行?

怎样让一个脚本在启机时自动运行?

时间:2002-07-15

来源:互联网

如题。      

作者: fromeast   发布时间: 2002-07-15

1. copy shell script "aa" to /etc/init.d
   link /etc/init.d/aa /etc/rcX.d/SXXaa

   X = 1, 2,3  run level

2. add shell script to .login or .profile
   the script will be run after login.      

作者: irvon   发布时间: 2002-07-16