标 题: Re: 请教:如何登录后自动启动一个程序
发信站: 广州网易BBS站 (Thu Oct 15 08:07:00 1998), 转信

【 在 devin (ahah) 的大作中提到: 】
: 【 在 ytana (秋雨) 的大作中提到: 】
: : 就像BBS那样,而且推出该程序后自动退出登录.
: : 谢谢!
: there TWO way,maybe more.
:
: just put two command in the end of
: .cshrc or .login (CSH) or .profile(SH)
:
: for example (file .profile)
:
: #FILE START
: ...
: ...
: your command here
: logout
: #FILE END
: that's ok.
你应该屏蔽掉键盘中断,man trap看看. 否则人家用Ctrl-Z(or Ctrl+/),嘿嘿......
:
: another simple way is make your program
: be a users shell.

本文转自中文Linux论坛