Changing the temporary directory
There are multiple methods to change the temporary directory location.
-
Method 1: Edit the hpsum.ini
file from a write-able directory. For more information, see Editing a default hpsum.ini file.
-
Method 2: Write a script to change the hpsum.ini
file from a write-able directory.
-
From a Windows system command line:
Type:
echo [Engine] > hpsum.ini
echo temp_dir=c:/hpsum/logs >> hpsum.ini
hpsum
-
Exit the command line.
-
From a Linux system command line:
Type:
echo "[Engine]" > hpsum.ini
echo "temp_dir=/use/john/hpsum/logs" >> hpsum.ini
./hpsum
-
Exit the command line.
-
Method 3: Generate the hpsum.ini
file when you run HP SUM from a non-writeable directory that redirects other files to the new location.
From 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.
From 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.
-
Method 4: 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.