Login and auto executes

看板FB_questions作者時間11年前 (2014/07/06 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/8 (看更多)
(1) I have this regular user U1. After I log in to that user account, I would like to start a script that does some other commandlines. For this purpose I created .bash_profile and .bashrc in the U1 user folder, containing a simple test command like 'ls': .bashrc ls -alt In the .profile of the U1 user I put at the last line: [ $BASH ] && [ -f ~/.bashrc ] && . ~/.bashrc (2) I also tried putting the extra commands in the U1 .profile: --- cut --- echo '-- UPTIME --' uptime echo '' echo '-- Who is ONLINE --' who --- cut --- but this also is not executed. What do I overlook and/or is there an easier way of execting some after-login commands? Thanks for your reply, Jos Chrispijn _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1JkHUJHR (FB_questions)
文章代碼(AID): #1JkHUJHR (FB_questions)