On Mon, Jan 21, 2002 at 07:31:23PM +0530, Ankit Jain wrote:
> 
> i d/led a script called xyz.txt on my windoze laptop and 
> transferred it 2 my rhl 7.1 (kernel 2.4.12)  box  via  a 
> floppy. Renamed it and set the proper  permissions (exe-
> cute perm).  Now doing a  ./xyz.sh  gives
> bash:xyz.sh command not found
> 

a) Check the first line on the script. Often a thing like
   #!/usr/local/bin/perl  (instead of /usr/bin/perl)  may 
   be the problem, if your perl is installed in /usr/bin.
   For shell scripts, the first line maybe  /bin/ash etc.
   If you do not have ash installed, the same  error will
   be shown. It will work when you  change it to  /bin/sh
   (which possibly is a symlink to bash) and  it runs all
   ash commands/ syntax.
   
b) For M$ downloaded text files, it is  always  better to 
   strip the ^M at each line end.
   
c) chmod 755 is more than enough for  global execution if
   placed in a dir in common path like /usr/local/bin.   
 
Just my 2p

Bish


--
:
####[ Linux One Stanza Tip (LOST) ]###########################
 
Sub : Mounting a zip drive                           LOST #235

If ZIP drive has been recognised by the kernel,  next step is
to load the device driver, and then mount it at a mount point
viz. #modprobe ide-floppy ( and then ...)
     #mount /dev/hdaN /mnt/zip (where hdaN is the device  the
     kernel recognises, and /mnt/zip is the mount point)
     
####<[EMAIL PROTECTED]>####################################
:

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to