From owner-freebsd-questions@FreeBSD.ORG Sun Jul 6 09:26:30 2014 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CBDB4F19 for ; Sun, 6 Jul 2014 09:26:30 +0000 (UTC) Received: from thetys.cloudzeeland.nl (webrz.xs4all.nl [83.161.133.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloudzeeland.nl", Issuer "PositiveSSL CA 2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AC6220AC for ; Sun, 6 Jul 2014 09:26:29 +0000 (UTC) Received: from thetys.cloudzeeland.nl (thetys.cloudzeeland.nl [10.10.10.31]) by thetys.cloudzeeland.nl (Postfix) with ESMTP id F3BDD164FF70 for ; Sun, 6 Jul 2014 11:24:38 +0200 (CEST) Received: from [10.10.10.70] (iMacJ.cloudzeeland.nl [10.10.10.70]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by thetys.cloudzeeland.nl (Postfix) with ESMTPSA id D49E8164FF15 for ; Sun, 6 Jul 2014 11:24:38 +0200 (CEST) Message-ID: <53B9163E.3040406@webrz.net> Date: Sun, 06 Jul 2014 11:26:22 +0200 From: Jos Chrispijn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 To: "freebsd-questions@FreeBSD.org" Subject: Login and auto executes X-Virus-Scanned: ClamAV using ClamSMTP on thetys.cloudzeeland.nl MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.18 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2014 09:26:30 -0000 (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