Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cnt files for Catia V4

Status
Not open for further replies.

cadmanager

IS-IT--Management
May 10, 2006
7
BE
hi,

I have a question :
one of my designers on Catia V4 works generate many
cnt files in /tmp .
The files are generated by catia.
I don't know why Catia generate files in /tmp.
The buzz was : a full /tmp can block the use of softwares.

Can someone help me to modifiy the save patch of this application?

Antoine
 
hi,

The problem is that /tmp is a default for many operations
for CATIA V4; move all them is a lost war !

The approach that I suggest, is to move each by each these
operations away from /tmp and put them on a sort of /home/temp appropriate filesystem.
(after I show some of them)

However, a thing that should be done, on these machines,
seen that they are "workstations" is to "delete" all files
in /tmp everytime the user gives a shutdown to his machine.

I show 3 ways.

1) The simple mode, but no the most efficient, is to put
the user in shutdown group, give he a shell that:
rm -R /tmp/* ; rm -R /tmp/.[A-z][0-9]* ; shutdown -F
This approach, deletes all user file, but leaves temporary
root system files. (Very useful would to delete /etc/state /etc/sm* ecc temporary nfs file)

2) Another thing than someone use, is to create a "SWITCHOFF" user, put he in the root group, and in its login script do all rm you need and give the shutdown command.

3) The best I have used was a C program in which you perform some commands, also launching a script,
compile and link it, and set the bits as

-rwsr-x--- 1 root catia 3643 Apr 04 14:50 STOP

If the user launch directly the script, it is refused, but if he launches the STOP program, the command becomes root, and can rm files and shutdown AIX.

You cannot -rwsr-x--- the script ! (You can, but it does not work)

Sure this operation give you less work around the workstations !

Returnig to what you can avoid to go in /tmp is:
roll, save, and trace file,
CATIA.roll = '/home/temp/roll.$LOGNAME.roll' ;
and so on, but you probably have already done.

What I never have moved, probably I have not investigated well, is the temporary file that is created when a user plots a drawing:
in /tmp you need a space large same the model size, indipendentely from the size and number of lines: catia, to plot, uses a CATUTIL:
this save your model in /tmp, and launches in batch the CATPLOT, then deletes the file.
If this operation aborts, the file remain in /tmp;
Othe files are those of DXF and Iges import, you can move them, but I think that the best is to remove all in /tmp as above showed.

bye
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top