From owner-freebsd-questions@freebsd.org Mon Dec 30 14:32:24 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3CBDB1E16C6 for ; Mon, 30 Dec 2019 14:32:24 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) Received: from mail-01.thismonkey.com (mail-01.thismonkey.com [IPv6:2406:3400:35e:6602::a01:232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thismonkey.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47mfys58Xfz42pf for ; Mon, 30 Dec 2019 14:32:20 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) X-TM-Via-MX: mail-01.thismonkey.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thismonkey.com; s=dkim; t=1577716324; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=l80kjp8pcE9S5xeLsnW5VbIOvBKxFdYGLGXmYwZh9CU=; b=JjObylpf/unmwGCi1KG67kONvvF/w1jEsGUxvBR8X43mDJBSYmXpuiB4qaJU//0McR74v8 Zk1/BKW1O6F/cdp5zuari96xpM5xSXU/ZtBbMaNpQjM5uwV72Qgn26XcO1Yb//5lp1l7Pc NxM1uYrQU88E83Lpw4r2GaqY8a9SM9E= Received: from utility-01.thismonkey.com (utility-01.thismonkey.com [IPv6:2406:3400:35e:6601:0:0:a01:120]) by mail-01.thismonkey.com (8.15.2/8.15.2) with ESMTPS id xBUEW1Dh073410 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 31 Dec 2019 01:32:04 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Received: from utility-01.thismonkey.com (localhost [127.0.0.1]) by utility-01.thismonkey.com (8.15.2/8.15.2) with ESMTP id xBUEW1Kp089723 for ; Tue, 31 Dec 2019 01:32:01 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Received: (from root@localhost) by utility-01.thismonkey.com (8.15.2/8.15.2/Submit) id xBUEVxgY089655 for freebsd-questions@freebsd.org; Tue, 31 Dec 2019 01:31:59 +1100 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Date: Tue, 31 Dec 2019 01:31:59 +1100 From: Scott To: freebsd-questions@freebsd.org Subject: Re: Program order in crontab Message-ID: <20191230143159.GA80921@thismonkey.com> Mail-Followup-To: freebsd-questions@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) X-Virus-Scanned: clamav-milter 0.101.4 at mail-01.thismonkey.com X-Virus-Status: Clean X-Rspamd-Queue-Id: 47mfys58Xfz42pf X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none (invalid DKIM record) header.d=thismonkey.com header.s=dkim header.b=JjObylpf; dmarc=pass (policy=none) header.from=thismonkey.com; spf=pass (mx1.freebsd.org: domain of freebsd-lists-5@thismonkey.com designates 2406:3400:35e:6602::a01:232 as permitted sender) smtp.mailfrom=freebsd-lists-5@thismonkey.com X-Spamd-Result: default: False [-4.82 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-2.02)[ip: (-8.68), ipnet: 2406:3400:300::/40(-4.34), asn: 10143(2.90), country: AU(0.01)]; DKIM_TRACE(0.00)[thismonkey.com:~]; DMARC_POLICY_ALLOW(-0.50)[thismonkey.com,none]; R_DKIM_PERMFAIL(0.00)[thismonkey.com:s=dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:10143, ipnet:2406:3400:300::/40, country:AU]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Dec 2019 14:32:24 -0000 > In a standard 'crontab', if I have three programs as show below, do they > run in order as listed or all at one time, or something else? Does each > program finish before the next one starts? > > */5 * * * * /usr/home/gerard/Scripts/Program1.sh > */5 * * * * /usr/home/gerard/Scripts/Program2.sh > */5 * * * * /usr/home/gerard/Scripts/Program3.sh > > Thanks > > -- > Jerry They would run asynchronously, although I'm not sure of the order they would be started. The cron code may shed some light (I would assume top down but I haven't checked the code). If you wanted to ensure they are run synchronously just put them on one line separated with a '; '. Scott