*BSD News Article 55920


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!swrinde!sgigate.sgi.com!news1.best.com!news3.net99.net!news.cais.net!news.cais.com!blue
From: jsloan@livnet.com (Jim Sloan)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: Scripts --> command not found error
Date: Sun, 03 Dec 95 06:34:13 GMT
Organization: LiveNet
Lines: 43
Message-ID: <49rgcq$fij@news.cais.com>
References: <Pine.SUN.3.90.951202080039.4234A-100000@conan.ids.net>
NNTP-Posting-Host: 205.138.9.23
X-Newsreader: News Xpress Version 1.0 Beta #4

In article <Pine.SUN.3.90.951202080039.4234A-100000@conan.ids.net>,
   Randall Hill <rlh@conan.ids.net> wrote:
>Hi all,
>  I just picked up a new Internet provider who uses
> 2.0.1 BSDI BSD/OS 2.0.1
>and I cannot get my perl scripts to run.
>the permissions are 
>-rwxrwxr-x  1 sonalyst  vuser  38 Dec  2 05:37 test.pl
>and perl is at /usr/bin/perl
>
>for example the script test.pl
------source and testing cut -----------
>
>
>I would GREATLY appreciate ANY help.  I run on LINUX, SUN, SGI, HP
>so I'm assumming it is something to do with BSDI which is new to me.
>
>TIA,
>-randy
>rlh@ids.net


The problem isn't BSDi or perl, it's the path, your path doesn't include your 
relative path.  if ./test.pl works then you can edit your path statement in 
profile or .cshrc (depending on shell) and add . to the path.  One thing to 
note though, this is not recommended, and why it is left out of the default 
path.

+---------------------------------------+-----------------------------+
| Jim Sloan                             |           jsloan@livnet.com |
| LiveNet, Inc.                         |                             |
| 1303 Mediterranean Ave.               | These views do reflect the  |
| Virginia Beach VA 23454               | views of my company,        |
| Ph: 804-422-0069                      | because it is my company.   |
| http://www.livnet.com                 |                             |
+---------------------------------------+-----------------------------+
| Microsoft Network is prohibited from redistributing this work in    |
| any form, in whole or in part. Copyright, Jim Sloan, 1995.  License |
| to distribute this post is available to Microsoft for US$5,000, or  |
| equivalent local currency. Posting without permission constitutes   |
| an agreement to these terms. Please send notices of violation to    |
| jsloan@livnet.com, and Postmaster@microsoft.com                     |
+---------------------------------------------------------------------+