Re: Error in script "invalid interpreter" (longish)

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

 



Richard E Miles wrote:

Thanks very much for your kind reply.

On Mon, 17 Oct 2005 14:11:55 -0500
Mike McCarty <mike.mccarty@xxxxxxxxxxxxx> wrote:

[snip]

I believe the problem is the permissions of the files in /mnt/cdrom.
When you put in a cdrom disk the permissions of all the files on the
cdrom will be read only. Therefore you can not execute a sh script from
that area. You could copy the script to your home directory and change
it via chmod +x to allow it to run.

Erm? This is news to me. Do you claim that, in order for me to
execute an sh script, I must have *write* access to it? I wasn't
aware of that.

$ which discfull
~/bin/discfull

$ ls -l ~/bin/discfull
-r-xr-xr-x 1 jmccarty jmccarty 1425 Oct 3 17:30 /home/jmccarty/bin/discfull

$ head /home/jmccarty/bin/discfull
#!/bin/bash


# the warning limit for disk usage in %
DISK_USAGE=85


report()
{
        echo $*
#       logger $*
}

$ discfull
Warning: disk nearing capacity on Presario-1
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5              7633264   5154268   2091248  72% /
/dev/hda3                99075     24602     69358  27% /boot
none                    124044         0    124044   0% /dev/shm
/dev/hdc                  5404      5404         0 100% /mnt/cdrom


And why is it complaining about an invalid interpreter?

Always willing to learn.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux