Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!news.mtu.edu!sol.ctr.columbia.edu!howland.reston.ans.net!tank.news.pipex.net!pipex!newsfeed.internetmci.com!info.ucla.edu!zephyr!typhoon!jerijian From: jerijian@typhoon.seas.ucla.edu (Arthur D. Jerijian) Subject: Re: Shell Programming Sender: news@seas.ucla.edu (News Daemon) Message-ID: <DDtpx0.8oB@seas.ucla.edu> Date: Thu, 24 Aug 1995 16:31:47 GMT X-Nntp-Posting-Host: typhoon.seas.ucla.edu References: <DDtHw6.IC2@freenet.carleton.ca> Organization: GNAT's Not ArThur X-Newsreader: TIN [version 1.2 PL2] Lines: 26 Tom Hill (ae263@FreeNet.Carleton.CA) wrote: > I am new to UNIX and BSD, although I have set up several systems using Linux. > Now I want to set up two more servers using BSDI's BSD Version 2.0.1, but am having trouble with shell scripting. > I want to write scripts to automate tape backup and server mirroring, but am unable to get any scripts - even those that work under Linux - to execute. > For example, the followign test script clears the screen under Linux: > #!/bin/bash > clear > But under BSD, the same script produces only the message "command not found". > I'd appreciate hearing from anyone who can tell me what's happening here, and give me any other pointers on shell scripting with BSD. > Thank-you It seems that the bash shell interpreter doesn't come with BSDI by default. I've never used BSDI, but I am pretty sure that you will have no trouble compiling bash. Just get the source code from any site that carries GNU utilities, like prep.ai.mit.edu:/pub/gnu . In the meantime, you can use the Bourne shell (sh), although it is much more limited than bash. For example, this sh script will clear the screen: #!/bin/sh clear I hope this helps. --Arthur Jerijian jerijian@aixugrad.seas.ucla.edu