[2536] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Problem running programs

daemon@ATHENA.MIT.EDU (Daniel Chalef)
Mon Nov 4 01:50:26 1996

Date: Mon, 4 Nov 1996 08:47:57 +0200 (SAT)
From: Daniel Chalef <danielc@iafrica.com>
Reply-To: danielc@iafrica.com
To: redhat-list@redhat.com
In-Reply-To: <3.0.32.19961103223639.006a0f50@pop.ablecom.net>
Resent-From: redhat-list@redhat.com

> I just compiled a program.  The compile was successful, but whenever I try
> to run the program I can a "bash:  command not found" even though it is
> there.  

If it is a perl, sh, or wish script check that the first line of the
script has the path to the interpreter/shell.

for eg:
#!/usr/bin/perl

An easy way to determine the type of file, whether it is a
binary/script/etc is to type 'file "foobar"'

Cheerio
Daniel
--
Daniel Chalef                                           danielc@iafrica.com
UUNet Internet Africa Operations                             +27 21 6896244


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post