From owner-freebsd-questions@FreeBSD.ORG Sat Jun 2 10:57:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 850C31065670 for ; Sat, 2 Jun 2012 10:57:46 +0000 (UTC) (envelope-from jan0sch@gmx.net) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id DF9B58FC08 for ; Sat, 2 Jun 2012 10:57:45 +0000 (UTC) Received: (qmail invoked by alias); 02 Jun 2012 10:57:44 -0000 Received: from dslb-088-072-222-231.pools.arcor-ip.net (EHLO magni.rostock.home) [88.72.222.231] by mail.gmx.net (mp030) with SMTP; 02 Jun 2012 12:57:44 +0200 X-Authenticated: #1545395 X-Provags-ID: V01U2FsdGVkX19LfdUIp2NLXS+mNRrYYxEF/m403mVMBu76VcqLnz YfdQ5krPpJYJmb Date: Sat, 2 Jun 2012 12:57:43 +0200 From: Jens Jahnke To: freebsd-questions@freebsd.org Message-Id: <20120602125743.fea43448.jan0sch@gmx.net> In-Reply-To: References: <20120601213900.2d0825b6.jan0sch@gmx.net> X-Mailer: Sylpheed 3.1.4 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) X-Face: &?!P`87-36gaG)/K:yi&ixw=uy]y'?$vrc Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Sat__2_Jun_2012_12_57_43_+0200_m3aRBg_62zzZ+Eqy" X-Y-GMX-Trusted: 0 Subject: Re: How to crontab screen with script inside and a "don't run it if it's already running" check? 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: Sat, 02 Jun 2012 10:57:46 -0000 --Signature=_Sat__2_Jun_2012_12_57_43_+0200_m3aRBg_62zzZ+Eqy Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Dwayne, On Sat, 2 Jun 2012 10:59:09 +0200 Dwayne Henderson wrote: DH> Nice. But what to do if the machine reboots or whatever. Would you DH> crontab your new Irssi alias? I'm not sure. On my remote box I usually start irssi by hand because it only ceases if the machine is rebooted. ;-) The current alias itself would probably cause problems in a crontab. But you could maybe wrap it into a modified if that only calls the alias if the pgrep command returns an empty result. Regards, Jens --=20 02. Brachet 2012, 12:54 Homepage : http://www.jan0sch.de Optimist, n.: A bagpiper with a beeper. --Signature=_Sat__2_Jun_2012_12_57_43_+0200_m3aRBg_62zzZ+Eqy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQG8BAEBCgAGBQJPyfGnAAoJED2+SXzzbciGogAM/i/xU57x0yr3YMsl0gM3Dodn 2aF02iu14iQlLToiLwAyhZWRzNH3vqH+oYx/pI1u9zkYqCXmFsWtY2TuQgIBdJh+ 4PlxXSo91G1Y+LFBHVW6z2QZw+joNVt9DhGr4aWAv3mpm9ZmED5YMJ/mtgYBXXJV 27vMOoS3AaCUtgVJUSti33gA1MUrq7GGqiUNbPpRgj8J77RposQdIseygwQgz97R njq/J5ZKC4o9yvtz3qJ+0C+HqYhKikdkmTZy9KfTynQ0q+Xwa450Nv4jTJVjKqsf D3nn5Y8CjrfRFgvhn+7SpdYzEmELWToPATv5gKZ0oqWpGCsI3aJxlZsT3PaxmXhJ 7pGaYaxZ9MLig+letEaT+mV6ifKa6GOO3ZY2MiOQRCfl6pDsKMaxklo+tDjMMZ+K az0SqS+LKURLHDkhh53tJZhWY7OGeb4ZC/3lOoQXW24ZsE2Nd+TmwqPgDNad+VHI QzguWUYuc20AfDvE++huSf59kC3wWPMQ+/tUV+SFQ3M77e3NB76zNK3/17UuB3TN JTG9TFtsmU9OYWa4+RQF =q+7/ -----END PGP SIGNATURE----- --Signature=_Sat__2_Jun_2012_12_57_43_+0200_m3aRBg_62zzZ+Eqy--