Yes, opensips can read the file, and the problem is not in file permissions or selinux.<br><br><br><div class="gmail_quote">On Mon, May 3, 2010 at 11:35 AM, samoh <span dir="ltr"><<a href="mailto:dahmani.samy@gmail.com">dahmani.samy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Vadim,<br>
<br>
there is a result of strace command :<br>
<br>
root@samy-desktop:~# strace file "/home/opensips/etc/opensips/<a href="http://script.pl" target="_blank">script.pl</a>"<br>
execve("/usr/bin/file", ["file", "/home/opensips/etc/opensips/scri"...], [/*<br>
21 vars */]) = 0<br>
brk(0) = 0x87ca000<br>
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or<br>
directory)<br>
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb7888000<br>
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or<br>
directory)<br>
open("/etc/ld.so.cache", O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=55457, ...}) = 0<br>
mmap2(NULL, 55457, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb787a000<br>
close(3) = 0<br>
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or<br>
directory)<br>
open("/usr/lib/libmagic.so.1", O_RDONLY) = 3<br>
read(3,<br>
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P!\0\0004\0\0\0H"..., 512) =<br>
512<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=87680, ...}) = 0<br>
mmap2(NULL, 90812, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =<br>
0xb7863000<br>
mmap2(0xb7878000, 8192, PROT_READ|PROT_WRITE,<br>
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14) = 0xb7878000<br>
close(3) = 0<br>
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or<br>
directory)<br>
open("/lib/libz.so.1", O_RDONLY) = 3<br>
read(3,<br>
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\31\0\0004\0\0\0\0"...,<br>
512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=83552, ...}) = 0<br>
mmap2(NULL, 86284, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =<br>
0xb784d000<br>
mmap2(0xb7861000, 8192, PROT_READ|PROT_WRITE,<br>
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7861000<br>
close(3) = 0<br>
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or<br>
directory)<br>
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3<br>
read(3,<br>
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320h\1\0004\0\0\0\344"...,<br>
512) = 512<br>
fstat64(3, {st_mode=S_IFREG|0755, st_size=1442180, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb784c000<br>
mmap2(NULL, 1451632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =<br>
0xb76e9000<br>
mprotect(0xb7845000, 4096, PROT_NONE) = 0<br>
mmap2(0xb7846000, 12288, PROT_READ|PROT_WRITE,<br>
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0xb7846000<br>
mmap2(0xb7849000, 9840, PROT_READ|PROT_WRITE,<br>
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7849000<br>
close(3) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb76e8000<br>
set_thread_area({entry_number:-1 -> 6, base_addr:0xb76e86c0, limit:1048575,<br>
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,<br>
seg_not_present:0, useable:1}) = 0<br>
open("/dev/urandom", O_RDONLY) = 3<br>
read(3, "\272\327\325"..., 3) = 3<br>
close(3) = 0<br>
mprotect(0xb7846000, 8192, PROT_READ) = 0<br>
mprotect(0xb7861000, 4096, PROT_READ) = 0<br>
mprotect(0xb7878000, 4096, PROT_READ) = 0<br>
mprotect(0x804b000, 4096, PROT_READ) = 0<br>
mprotect(0xb78a7000, 4096, PROT_READ) = 0<br>
munmap(0xb787a000, 55457) = 0<br>
brk(0) = 0x87ca000<br>
brk(0x87eb000) = 0x87eb000<br>
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No<br>
such file or directory)<br>
open("/usr/share/locale/locale.alias", O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb7887000<br>
read(3, "# Locale name alias data base.\n# "..., 4096) = 2570<br>
read(3, ""..., 4096) = 0<br>
close(3) = 0<br>
munmap(0xb7887000, 4096) = 0<br>
open("/usr/lib/locale/fr_FR.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such<br>
file or directory)<br>
open("/usr/lib/locale/fr_FR.utf8/LC_CTYPE", O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=256316, ...}) = 0<br>
mmap2(NULL, 256316, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76a9000<br>
close(3) = 0<br>
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=26048, ...}) = 0<br>
mmap2(NULL, 26048, PROT_READ, MAP_SHARED, 3, 0) = 0xb7881000<br>
close(3) = 0<br>
stat64("/root/.magic", 0xbfae9c34) = -1 ENOENT (No such file or<br>
directory)<br>
open("/etc/magic.mgc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or<br>
directory)<br>
stat64("/etc/magic", {st_mode=S_IFREG|0644, st_size=111, ...}) = 0<br>
open("/etc/magic", O_RDONLY|O_LARGEFILE) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=111, ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb7880000<br>
read(3, "# Magic local data for file(1) co"..., 4096) = 111<br>
read(3, ""..., 4096) = 0<br>
close(3) = 0<br>
munmap(0xb7880000, 4096) = 0<br>
open("/usr/share/file/magic.mgc", O_RDONLY|O_LARGEFILE) = 3<br>
fstat64(3, {st_mode=S_IFREG|0644, st_size=1679616, ...}) = 0<br>
mmap2(NULL, 1679616, PROT_READ|PROT_WRITE, MAP_PRIVATE, 3, 0) = 0xb750e000<br>
close(3) = 0<br>
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 4), ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =<br>
0xb7880000<br>
lstat64("/home/opensips/etc/opensips/<a href="http://script.pl" target="_blank">script.pl</a>", {st_mode=S_IFREG|0777,<br>
st_size=655, ...}) = 0<br>
stat64("/home/opensips/etc/opensips/<a href="http://script.pl" target="_blank">script.pl</a>", {st_mode=S_IFREG|0777,<br>
st_size=655, ...}) = 0<br>
open("/home/opensips/etc/opensips/<a href="http://script.pl" target="_blank">script.pl</a>", O_RDONLY|O_LARGEFILE) = 3<br>
fcntl64(3, F_GETFL) = 0x8000 (flags<br>
O_RDONLY|O_LARGEFILE)<br>
fcntl64(3, F_SETFL, O_RDONLY|O_LARGEFILE) = 0<br>
read(3, "#!/usr/local/bin/perl\nuse OpenSIP"..., 98304) = 655<br>
close(3) = 0<br>
write(1, "/home/opensips/etc/opensips/scrip"...,<br>
84/home/opensips/etc/opensips/<a href="http://script.pl" target="_blank">script.pl</a>: a /usr/local/bin/perl script text<br>
executable<br>
) = 84<br>
munmap(0xb750e000, 1679616) = 0<br>
exit_group(0) = ?<br>
<br>
Someone can tell me where is my error ?.<br>
<br>
Thank you in advance.<br>
Sam.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4997013.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/ERROR-perl-parser-init-failed-to-load-perl-file-tp4985385p4997013.html</a><br>
</font><div><div></div><div class="h5">Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Vadim Grinco<br><br>