Changing the temporary directory

Editing file from a write-able directory

  • Edit the hpsum.ini file from a write-able directory.


    [NOTE: ]

    NOTE: If the environmental variable TMPDIR is set, HP SUM creates the directory localhpsum in the TMPDIR directory and copies necessary HP SUM files to the directory.


Scripting the temp directory from a write-able directory

  1. From a Windows system command line:

    Type:

    echo [Engine] > hpsum.ini
    echo temp_dir=c:/hpsum/logs >> hpsum.ini
    hpsum
    
  2. Exit the command line.

  1. From a Linux system command line:

    Type:

    echo "[Engine]" > hpsum.ini
    echo "temp_dir=/use/john/hpsum/logs" >> hpsum.ini
    ./hpsum
    
  2. Exit the command line.

Redirecting to a writeable directory when running from a non-writeable directory

The following commands generate an hpsum.ini file when you run HP SUM from a non-writeable directory. The command redirects files to the new location.

Windows system command line:

Type:

  1. mkdir %temp%\HPSUM

    echo [Engine] > %temp%\HPSUM\hpsum.ini

    echo temp_dir=c:/hpsum/logs >> %temp%\HPSUM\hpsum.ini

    hpsum

  2. Exit the command line.

Linux system command line:

Type:

  1. mkdir /tmp/HPSUM

    echo "[Engine]" > /tmp/HPSUM/hpsum.ini

    echo "temp_dir=/use/john/hpsum/logs" >> /tmp/HPSUM/hpsum.ini

    ./hpsum

  2. Exit the command line.

Setting the TEMP directory before running HP SUM (Windows)

  1. Windows system command line:

    Type:

    set TEMP=c:\hpsum\logs
    hpsum
    
  2. Exit the command line.

Creating a symbolic link between directories (Linux)

This method creates a symbolic link from /tmp/HPSUM to another directory before launching HP SUM.

  • Type:

    -mkdir /opt/hp/HPSUM
    -ln —s /opt/hp/HPSUM /tmp/HPSUM
    
More information
Copying the HP SUM temp files
Editing the default hpsum.ini file
Creating an hpsum.ini file
Changing the temporary directory
hpsum.ini file parameters