Date: Sun, 29 Oct 2000 15:44:22 +0100 From: "James Wilde" <james.wilde@telia.com> To: "Peter" <peter@qtme.com>, "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: RE: Trying to make something close to .bat file for dos on freebsd Message-ID: <000e01c041b6$b9b98390$8208a8c0@iqunlimited.net>
next in thread | raw e-mail | index | archive | help
Please don't send messages in html format to the list. A lot of people in here have mail clients which can't handle html. And it makes it difficult to show your message as a quoted message. > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Peter > Sent: Sunday, October 29, 2000 13:39 > To: 'freebsd-questions@freebsd.org' > Subject: Trying to make something close to .bat file for dos on freebsd > Hello > Im trying to make something close to bat for freebsd. But don't know where to start. I was thinking making so when i hit say "c" it auto connect start ssh and connect to a remote site. Sounds like what you need is a shell script. This is basically a text file containing the commands you want to issue. It is usual - I don't know whether it is necessary - to start a shell script with a comment line detailing the shell in which it is programmed. Mine all start: #!/bin/sh The trick is not to forget to change the mode so that they are executable. When a script is created it is not executable. And you have to specify the full path if it is not contained in a directory on your path, even if it is in the current directory. A good tip is to name your scripts something.sh for bourne shell scripts or something.csh for c-shell scripts and so on. As to what you can put in them: man sh Others will come in and tell you more or correct me if I am wrong on any point. mvh/regards James 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?000e01c041b6$b9b98390$8208a8c0>