Date: Sun, 29 Oct 2000 23:27:23 +0200 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: Peter <peter@qtme.com> Cc: "'freebsd-questions@freebsd.org'" <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> In-Reply-To: <000d01c041a5$265e56e0$cb3b35d1@bconnected.net>; from peter@qtme.com on Sun, Oct 29, 2000 at 04:38:33AM -0800 References: <000d01c041a5$265e56e0$cb3b35d1@bconnected.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001029232723.C2534>
