I am a root user.. and also did grant permission ...is there any possibilities here after..
You may be root, but when you run a script from a browser, root is not (or at least should not be) running the script --- the web server user (probably www or httpd) is running the script on your behalf. To whom did you grant permission?
At least 80% of the time when one user can run something and another cannot the problem is some kind of permission problem. Virtually all the rest of the time, it is an environment problem. The first question is "who is your web server user?" For example:
- [root@foo ~]# ps -ef | grep httpd
-
www 2248 1 0 Jan04 ? 00:00:00 /usr/bin/perl /home/httpd/perl/bar
shows that
www is the user that actually runs the webserver on host "foo". So, does
www have permission to run your script. If you are root, do:
(don't forget the "-" in that command!!!) and then try to run the script. Does it run properly? If yes, then we'll have to come up with another hypothesis, but I would be very surprised if it does. You are likely to get some kind of informative error message if it does not.
Let us know what happens.
HTH,
Paul