From owner-freebsd-questions@FreeBSD.ORG Thu Sep 18 15:07:21 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 66BAE1065675 for ; Thu, 18 Sep 2008 15:07:21 +0000 (UTC) (envelope-from michael.le_barbier@laposte.net) Received: from darboux.math.univ-montp2.fr (darboux.math.univ-montp2.fr [162.38.126.4]) by mx1.freebsd.org (Postfix) with ESMTP id 2B0078FC33 for ; Thu, 18 Sep 2008 15:07:21 +0000 (UTC) (envelope-from michael.le_barbier@laposte.net) Received: from darboux.math.univ-montp2.fr (darboux.math.univ-montp2.fr [162.38.126.4]) by darboux.math.univ-montp2.fr (Postfix) with ESMTP id DC8BAA50238; Thu, 18 Sep 2008 16:39:29 +0200 (CEST) Message-ID: <48D26821.8020405@laposte.net> Date: Thu, 18 Sep 2008 16:39:29 +0200 From: =?ISO-8859-1?Q?Micha=EBl_Le_Barbier?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: redtick@sbcglobal.net References: <17473.88889.qm@web81206.mail.mud.yahoo.com> In-Reply-To: <17473.88889.qm@web81206.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: help help Subject: Re: passing variable to at command 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: Thu, 18 Sep 2008 15:07:21 -0000 Mark Busby wrote: > Is there a way to pass variables to a shell script from the command line with the at command? > What I've been trying is something like : at -f '/path/script 20 test' 8:10 091808 : Where 20 and test set variables in the script. > You will have to write your commands in a file, and supply the name of this file as the `-f' argument for at. The file is processed by SH. You can also say: echo /path/script 20 test | at 8:10 091808 > I've tried googling the at command for help but there's a lot of "at" in the world All of this is written in the at man page! -- Cheers, Michaël