Make an account specific tmp directory

✅ CONTENT MIGRATED TO GURU ON FEBRUARY 22, 2024

When the objects you are working with in your model are very large and your server has been setup with a /tmp location that isn't large enough you may see “Write” errors or other strange errors referencing the directory “/tmp”. They are a result of running out of disk space on /tmp.

This can be fixed by setting up tool to use the home directory of the account as it's temp directory:

 M:\EEAR\tmp 
 $tmpDir = "/models/modelAccountName/tmp"