From owner-freebsd-questions Sun Oct 29 13:49: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 3863237B4C5 for ; Sun, 29 Oct 2000 13:49:03 -0800 (PST) Received: from hades.hell.gr (ppp5.patr.hellasnet.gr [212.54.197.20]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id TAA04984; Sun, 29 Oct 2000 19:48:56 -0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id e9TLRNw02796; Sun, 29 Oct 2000 23:27:23 +0200 (EET) Date: Sun, 29 Oct 2000 23:27:23 +0200 From: Giorgos Keramidas To: Peter Cc: "'freebsd-questions@freebsd.org'" Subject: Re: Trying to make something close to .bat file for dos on freebsd Message-ID: <20001029232723.C2534@hades.hell.gr> References: <000d01c041a5$265e56e0$cb3b35d1@bconnected.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <000d01c041a5$265e56e0$cb3b35d1@bconnected.net>; from peter@qtme.com on Sun, Oct 29, 2000 at 04:38:33AM -0800 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Oct 29, 2000 at 04:38:33AM -0800, Peter wrote: > Hello > > > Im trying to make something close to bat for freebsd. But don't know > where to start. There are lots of good books on every day usage of Unix and it's environment. I started with "The Unix Programming Environment" of Brian Kernighan & Rob Pike, but this is an old book now, and I'm not sure if it's still available. > I was thinking making so when i hit say "c" it auto connect start ssh > and connect to a remote site. You can get away for this simple task with what Unix shells call 'aliases'. For instance if you're using tcsh, you can write at your prompt: % alias nini 'ssh -l username nini.somethere.net' and then use the alias for running the entire quoted command: % nini For more details, you can always consult the manual page of your favorite shell; sh(1), bash(1), csh(1) or tcsh(1). - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message