From owner-freebsd-newbies Sun Jun 21 14:46:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA06260 for freebsd-newbies-outgoing; Sun, 21 Jun 1998 14:46:29 -0700 (PDT) (envelope-from owner-freebsd-newbies@FreeBSD.ORG) Received: from mx.serv.net (mx.serv.net [205.153.153.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA06253 for ; Sun, 21 Jun 1998 14:46:28 -0700 (PDT) (envelope-from fewtch@serv.net) Received: from desktop-pentium (dialup417.serv.net [207.207.70.18]) by mx.serv.net (8.8.5/8.8.5) with SMTP id OAA08502; Sun, 21 Jun 1998 14:46:34 -0700 (PDT) Message-Id: <3.0.5.32.19980621144626.007f7e80@mx.serv.net> X-Sender: fewtch@mx.serv.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 21 Jun 1998 14:46:26 -0700 To: "Dru" From: Tim Gerchmez Subject: Re: Latest discoveries... Cc: In-Reply-To: <002801bd9d58$89279f00$8301d8cf@genisis> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well, I do want to know if it CAN be done as a simple alias rather than using a shell script. I certainly wouldn't mind learning to write shell scripts, but I'd also like to know if an alias in .cshrc can include more than one command, and if so, what the correct syntax would be. Thanks for the suggestion, Tim At 05:06 PM 6/21/98 -0400, Dru wrote: > >>Still need to know: How to use multiple commands in csh aliases. For >>example, in .cshrc, there are alias lines letting you set up your own >>commands. I haven't been able to figure out how to execute more than one >>command at a time using an alias. I want to be able to format, label and >>mount a floppy disk in one operation, but everything I've tried as far as >>setting an alias like "dofloppy" that performs those three operations has >>failed. I've had to break them up into separate aliases. Any clues from >>csh experts out there? If not, I'll try freebsd-questions next. > > >I'm no expert, but it sounds like you want a shell script, not an alias. >This is covered in very good detail with many simple examples in the book >Unix Unleashed in Chapter 13 under Aliases and Shell Scripts. Not trying >to push the website, but I'm poor and the book is excellent. I shelved the >Complete FreeBSD when it told me to use my favorite text editor to set up my >ppp configuration files. Geez, I had had FreeBSD installed and running for >less than 5 minutes and I already had a favorite text editor? Thus my >introduction to Vi, but I digress and don't want to get you started on the >vi thread again. > >Anyways, read the book for free at http://www.mcp.com/personal. Register >your e-mail address to get access to the e-library. Hope this helps. -- My web site starts at http://www.serv.net/~fewtch/index.html - lots of goodies for everyone, have a look if you have the time. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message