From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 19:05:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C88731065671 for ; Wed, 9 Apr 2008 19:05:59 +0000 (UTC) (envelope-from mla@nasreddine.com) Received: from server1.nasreddine.com (server1.nasreddine.com [82.225.70.234]) by mx1.freebsd.org (Postfix) with ESMTP id 6DA608FC23 for ; Wed, 9 Apr 2008 19:05:59 +0000 (UTC) (envelope-from mla@nasreddine.com) Received: from localhost (unknown [192.168.2.5]) by server1.nasreddine.com (Postfix) with ESMTP id 7091B12318D6 for ; Wed, 9 Apr 2008 21:05:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at nasreddine.info Received: from server1.nasreddine.com ([192.168.2.5]) by localhost (cadmus-mail.nasreddine.info [192.168.2.5]) (amavisd-new, port 10024) with LMTP id BE3iy9h4Awhu for ; Wed, 9 Apr 2008 21:05:54 +0200 (CEST) Received: from phoenix.nasreddine.info (phoenix.nasreddine.info [192.168.1.3]) by server1.nasreddine.com (Postfix) with ESMTPA id DA36712318B5 for ; Wed, 9 Apr 2008 21:05:54 +0200 (CEST) Date: Wed, 9 Apr 2008 21:05:44 +0200 From: Wael Nasreddine To: FreeBSD Mailing Lists Message-ID: <20080409190544.GB5664@phoenix.nasreddine.info> Mail-Followup-To: FreeBSD Mailing Lists References: <20080408220005.GA23508@phoenix.nasreddine.info> <20080409005217.GA97058@aleph.cepheid.org> <20080409010503.GB15556@phoenix.nasreddine.info> <20080409184216.GA16393@aleph.cepheid.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <20080409184216.GA16393@aleph.cepheid.org> X-Operating-System: Linux 2.6.24-ARCH i686 X-Uptime: 14:16:28 up 3 min, 9 users, load average: 1.91, 0.87, 0.33 X-Editor: VIM - Vi IMproved 7.1 (2007 May 12, compiled Mar 7 2008 02:52:44) X-PGP-Key: http://wael.nasreddine.com/files/Wael_Nasreddine.asc X-Info: http://wael.nasreddine.com User-Agent: Mutt/1.5.17-muttng (2007-11-01) Subject: Re: Screen inside Jails + su X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2008 19:05:59 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This One Time, at Band Camp, Erik Osterholm said, On Wed, Apr 09, 2008 at 01:42:16PM -0500: > Sure. > At your shell prompt, type: > man 5 crontab > You'll find the man page for the crontab file, which includes multiple > examples of cron entries. All of those use the time specification, > though, rather than the @reboot keyword. > An example using @reboot: > @reboot /usr/local/bin/screen -d -m Rtorrent > You can edit the crontab for the user with this command at your shell > prompt: > crontab -u username -e > This will dump you into your editor, editing the crontab file for the > user "username". Type in the crontab entry (for example, the one I > used as an example above), save, and try restarting the jail. Thank you, I googled a bit yesterday actually and now it's working perfectly :) I use linux since 6 years and I've never seen this reboot command actually, but I'm used to cron, but thanks a lot for pointing this out, it's very useful :) > Erik --=20 Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 /\ The mark of a good party is that you wake up the next morning wanting= to /\ change your name and start a new life in different city. /\ -- Vance Bourjaily, "Esquire" --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iEYEARECAAYFAkf9E4gACgkQVWU5RcjdGKKGTQCghh5vedt2gxtF51jm3L95rqXj xnUAoNGooninDo3n4iGyZ3lrVmJsfAnI =jClJ -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--