From owner-freebsd-questions Tue Feb 21 23:55:01 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id XAA00426 for questions-outgoing; Tue, 21 Feb 1995 23:55:01 -0800 Received: from estienne.cs.berkeley.edu (estienne.CS.Berkeley.EDU [128.32.42.147]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id XAA00417 for ; Tue, 21 Feb 1995 23:54:55 -0800 Received: from localhost (localhost [127.0.0.1]) by estienne.cs.berkeley.edu (8.6.9/8.6.9) with SMTP id XAA17749; Tue, 21 Feb 1995 23:54:31 -0800 Message-Id: <199502220754.XAA17749@estienne.cs.berkeley.edu> X-Authentication-Warning: estienne.cs.berkeley.edu: Host localhost didn't use HELO protocol To: "Duane R. Ellison " cc: questions Subject: Re: execute script In-reply-to: Your message of "Tue, 21 Feb 1995 22:31:53 GMT." Date: Tue, 21 Feb 1995 23:54:31 -0800 From: "Justin T. Gibbs" Sender: questions-owner@FreeBSD.org Precedence: bulk >Hello, > >I am having a slight problem making a script executeable chmod 777 >script_file. I thought maybe I was doing something wrong but I tried in >on my service provider's system (linux) and it worked fine... > >basically >vi dome >echo Hello world!!! ><:wq> >chmod 777 dome >dome >Hello world!!! > >On my system I get an unknown command. I figure I have something messed >up, but I am not sure what. Any clues would be appreciated. It sounds like Linux is messed up. What you forgot to do is tell the system what kind of script you wrote. Try adding this line at the top of the file: #!/bin/csh This will run the commands through csh. My guess is that Linux is defaulting to sh or something for executable asci files. > >Duane... > -- Justin T. Gibbs ============================================== TCS Instructional Group - Programmer/Analyst 1 Cory | Po | Danube | Volga | Parker | Torus ==============================================