Hi everyone
Have you ever heard about the $NATTMP environment variable?. The things is that I’ve been receiving a NAT1583 when I try ti print a report online from Natural. I found into the ServLine24 a report which mentions that environment variable.
So when I use the ‘sag’ user to login I can generate the online report but when I use another kind of user to login I receive the NAT1583.
The NATPARM definitions is at the device/report assignments: LPT1 AUTO 80 132 32767 $SAG/Procesos/imprime D. Where imprime is the following shell script: cat > $HOME/Reportes/filexxx.txt
exit 0The Natural program is: define printer (ors=1) output ‘LPT1’
write (ors) ‘Esta es una prueba’
end
I really appreciate your help. Thanks in advanced.
Sounds like a permission problem to me, try to run that script from outside natural, using a non-sag user that doesn’t work when you run it from inside natural.
Matthias,
Yes the NAT1583 descriptions mentions the TMP_PATH in the NATURAL.INI, so I already checked it and found out a tmp.
Yes every user has the Reportes directory defined.
Wolfgan/Matthias,
I already compare the sag user and the non-sag user and both are looking well. So I can notice the following:
The home directory for the sag user is /opt/softwareag and the home directory for the non-sag user is /home/non-sag
Both users belongs to the sag group
In regards of the shell script it has full permisology follow you can see the permisology: -rwxrwxrwx 1 sag sag 262 2008-08-29 imprime.
I am afraid when the non-sag user try to run the shell script and it execute the cat command it can not create the filexxx.txt file. But why does the non-sag user cannot execute the cat command?. The filexxx.txt does not exist so Why does the sag user can create it?
Wolfgan/Matthias,
The reason for the NAT1583 happened is because the tmp directory belongs to nat directory does not allow the non-sag user write on it. I changed the definitions using chmod command and now the non-sag user be able to write or create file on the tmp directory.
I read that the tmp directory is a Natural transient directory used as a kind of spool file. Does it?