[ADMB Users] glitch in tpl2rem (and tpl2cpp) ?

Poos, Jan Jaap janjaap.Poos at wur.nl
Tue Dec 9 07:53:36 PST 2008


Hi,
 
I found a small problem with respect to tpl2rem on linux, using
admb-9.0.9rc2-linux64-gcc3.4. When using tpl2rem on a file on one of our
network disks, this results in:
 
sh: envpref.htp: Permission denied
Error executing command  sed -e " "  classdef.tmp > envpref.htp
sh: envpref.htp: Permission denied
Error executing command sed -n -f
/home/poos001/admb-9.0.9rc2-linux64-gcc3.4/bin
/seddf1b3 tfile2 >> envpref.htp
sh: envpref.htp: Permission denied
Error executing command sed -n -f
/home/poos001/admb-9.0.9rc2-linux64-gcc3.4/bin
/seddf1b4 tfile4 >> envpref.htp
sh: envpref.htp: Permission denied
Error executing command sed -f
/home/poos001/admb-9.0.9rc2-linux64-gcc3.4/bin/se
ddf1b2 tfile2 >> envpref.htp
etc.
 
Subsequently, the directory in which the tpl file is located looks like:
 
-rw-r--r-- 1 root    imares    1894 2008-12-09 16:36 classdef.tmp
-rw-r--r-- 1 root    imares    3817 2008-12-09 16:36 envpref.cpp
-rwxrwxrwx 1 poos001 imares 6622965 2008-10-04 22:25 envpref.dat
-rw-r--r-- 1 root    imares    1894 2008-12-09 16:36 envpref.htp
-rwxrwxrwx 1 poos001 imares    4132 2008-10-04 22:25 envpref.pin
-rwxrwxrwx 1 poos001 imares    2308 2008-12-09 14:01 envpref.tpl
-rw-r--r-- 1 root    imares       0 2008-12-09 16:36 header.tmp
-rw-r--r-- 1 root    imares    1263 2008-12-09 16:36 tfile1
-rw-r--r-- 1 root    imares     126 2008-12-09 16:36 tfile2
-rw-r--r-- 1 root    imares     383 2008-12-09 16:36 tfile3
-rw-r--r-- 1 root    imares     122 2008-12-09 16:36 tfile4
-rw-r--r-- 1 root    imares     585 2008-12-09 16:36 xxalloc1.tmp
-rw-r--r-- 1 root    imares     179 2008-12-09 16:36 xxalloc2.tmp
-rw-r--r-- 1 root    imares     836 2008-12-09 16:36 xxalloc3.tmp
-etc.
 
So, all the temporary files remain in the directory. Running tpl2rem
again results in a segmentation fault.
 
This looks like a problem with setting the permissions when the
temporary files are made. The problem disappears when copying the files
to another location (like the users home dir). The same problem also
disappears when running tpl2env as root. Maybe this can be looked into
and fixed in a future version? 
 
Cheers, thanks in advance, Jan Jaap 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20081209/183d5906/attachment.html>


More information about the Users mailing list