[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] running leafnode and fetchnews



On Fri, 4 Feb 2000 holtzm@xxxxxxxxxxxx wrote:
> FWIW, /usr/sbin had to be added to the path. Prior to that, the
> command fetchnews returned the message "command not found". After
> /usr/sbin was added the message was "bash: fetchnews: command not
> found"

I'm running RedHat 5.2, GNU bash, version 1.14.7(1).  If I type a
command name that isn't in the path, like
    33
I get
    bash: 33: command not found
If I create a script but start it with a #! line that's for a
non-existent shell, like
    #! /usr/local/bin/NARF
I get
    bash: /home/tmcd/local/bin/test/33: No such file or directory
If I start it with a #! line that's correct and have a command that
doesn't exist, like
    #! /bin/bash
    frgdfjkfjkldjlfj
I get
    /home/tmcd/local/bin/test/33: frgdfjkfjkldjlfj: command not found
If I run the script using a literal "bash", like
    PATH=~/"local/bin/test:$PATH" bash 33
I get
    33: frgdfjkfjkldjlfj: command not found

So the only thing that matches your second reported message is my
first test, which would indicate that "fetchnews" is not in /usr/sbin
or you didn't actually put /usr/sbin in your path -- which seems
absurd!  Perhaps reply to this with the output of
    type fetchnews
    echo "$PATH"
appended?  Perhaps edit fetchnews to put
    set -x
near the top so you can trace execution?

-- 
Tim McDaniel (home); Reply-To: tmcd@xxxxxxxx; 
if that fail, my work address is tmcd@xxxxxxxxxxx


-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list