>>>>> On Mon, 15 May 2000 23:57:19 +0530, Rajesh Fowkar <[EMAIL PROTECTED]> said:

    Rajesh> Hi Khader, In fact the script runs if I give bash
    Rajesh> runIns.sh instead of ./runIns.sh.  If permissions of the
    Rajesh> file is a problem than bash runIns.sh should not work too
    Rajesh> :-) isn't it ?

I don't think so Rajesh.
have a look at this.

(sidgeek:~/shells) ls -la
total 12
drwxr-sr-x    2 sidgeek  sidgeek      1024 May 16 11:27 .
drwxr-s--x   52 sidgeek  sidgeek      6144 May 16 11:27 ..
-rwxr--r--    1 sidgeek  sidgeek       162 May  8 10:52 mintave.pl
-rw-r--r--    1 sidgeek  sidgeek       262 May 16 11:27 parser.pl

See above, no xecute bit set on parser.pl.

(sidgeek:~/shells) cat parser.pl
#!/usr/bin/perl
print "    IP              Date          Time         Path \n ";
print "================  ==============  ==========   ==== \n ";

(sidgeek:~/shells) ./parser.pl
zsh: permission denied: ./parser.pl

Obvious ain't it ?

(sidgeek:~/shells) perl parser.pl
    IP              Date          Time         Path 
 ================  ==============  ==========   ==== 

When you run bash runInst.sh, bash runs the program for you and the
program is not run by itself.
 
now after doing a chmod u+x on parser.pl

(sidgeek:~/shells) ls -la
total 12
drwxr-sr-x    2 sidgeek  sidgeek      1024 May 16 11:27 .
drwxr-s--x   52 sidgeek  sidgeek      6144 May 16 11:29 ..
-rwxr--r--    1 sidgeek  sidgeek       162 May  8 10:52 mintave.pl
-rwxr--r--    1 sidgeek  sidgeek       262 May 16 11:27 parser.pl

(sidgeek:~/shells) ./parser.pl
    IP              Date          Time         Path 
 ================  ==============  ==========   ==== 
 
Now do you get it. The directory in which it is there is set
executable. But still it doesnot make much of a difference.
I hope you get it now. 
Regards
        - Khader
-- 
Syed Khader Vali (Siddiq)                           - Linux Guy, LCC         
IBM Global Services , India
Work              --     [EMAIL PROTECTED],  [EMAIL PROTECTED]
Play              --     [EMAIL PROTECTED]
Debian GNU/Linux  ( Woody )                 http://www.sidcarter.com

-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to