Changing the temporary directory
There are multiple methods to change the temporary directory location
-
Edit the hpsum.ini
file from a write-able directory.
-
Write a script to change the hpsum.ini
file from a write-able directory.
-
On a Windows system command line, type:
echo [Engine] > hpsum.ini
echo temp_dir=c:/hpsum/logs >> hpsum.ini
hpsum
-
Exit the command line.
-
On a Linux system command line, type:
echo "[Engine]" > hpsum.ini
echo "temp_dir=/use/john/hpsum/logs" >> hpsum.ini
./hpsum
-
Exit the command line.
-
Generating the hpsum.ini
file when you run HP SUM from a non-writeable directory that redirects other files to the new location.
-
On a Windows system command line, type:
mkdir %temp%\HPSUM
echo [Engine] > %temp%\HPSUM\hpsum.ini
echo temp_dir=c:/hpsum/logs >> %temp%\HPSUM\hpsum.ini
hpsum
-
Exit the command line.
-
On a Linux system command line, type:
mkdir /tmp/HPSUM
echo "[Engine]" > /tmp/HPSUM/hpsum.ini
echo "temp_dir=/use/john/hpsum/logs" >> /tmp/HPSUM/hpsum.ini
./hpsum
-
Exit the command line.
-
Set the TEMP directory before starting HP SUM on a Windows system.
-
From a Windows system command line, type:
set TEMP=c:\hpsum\logs
hpsum
-
Exit the command line.