From owner-freebsd-questions Wed Nov 19 13:02:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA26682 for questions-outgoing; Wed, 19 Nov 1997 13:02:27 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from ghost.mep.ruhr-uni-bochum.de (ghost.mep.ruhr-uni-bochum.de [134.147.6.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA26666 for ; Wed, 19 Nov 1997 13:02:20 -0800 (PST) (envelope-from roberte@ghost.mep.ruhr-uni-bochum.de) Received: (from roberte@localhost) by ghost.mep.ruhr-uni-bochum.de (8.8.5/8.8.4) id WAA01239; Wed, 19 Nov 1997 22:02:10 +0100 (MEZ) From: Robert Eckardt Message-Id: <199711192102.WAA01239@ghost.mep.ruhr-uni-bochum.de> Subject: Re: your mail In-Reply-To: <3.0.1.32.19971119143820.0092a100@newton.ccs.tuns.ca> from Yingjun He at "Nov 19, 97 02:38:20 pm" To: hey@tuns.ca (Yingjun He) Date: Wed, 19 Nov 1997 22:02:09 +0100 (MEZ) Cc: questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk It was Yingjun He who wrote: > Hello, > > Anyone knows how to run batch jobs in FreeBSD system? Thank you! Choose a shell of your taste (sh, bash, ksh, csh, tcsh, ... -- usually sh), read the corresponding man page and enter in a text file as the very first line `#!/bin/YourShell' (assuming YourShell is in /bin) followed by your batch commands. Your batch commands can be any commands you enter on the commandline plus some statements for flow control. Make the text file executable (chmod +x YourFile) and call YourFile like any other command. Hope, it helps, Robert -- Robert Eckardt \\ FreeBSD -- solutions for a large universe.(tm) RobertE@MEP.Ruhr-Uni-Bochum.de \\ What do you want to boot tomorrow ?(tm) http://WWW.MEP.Ruhr-Uni-Bochum.de/~roberte For PGP-key finger roberte@gluon.MEP.Ruhr-Uni-Bochum.de