command to remove old sessions

HI there,

I want to modify the existing backup script to remove old sessions on  every job backup to save space. I know there is a command to remove old trace but cannot find one for old sessions. Currently we can only do it via xpp pathfinder. I actually did compare the difference before and after. It seems it only keeps the latest session on every page and therefore the session number on each page would be different. Is it correct to keep the largest number session of that particular page and remove the rest would do the job? Does anyone know a quicker and better way to do it? Appreciate if anyone can share some light on this one.

Thanks. Kwan

  

Parents
  • Indeed like Chris said, the divcollct utility is what you are looking for.
    Here is what xyhelp divcollct has to say about this handy tool:

    ------------------------------------
    DIVCOLLCT is an application, run from PathFinder or from the
    command line, to clean up a division by eliminating some or all the files
    associated with previous sessions. Command line options are:

    divcollct With no arguments, removes all files associated with all
    sessions except the current session.

    -cd divpath Directory path name of a division.

    -a# Retain the current session and # backup sessions. Use any
    large number (e.g. -a99) to retain all backup sessions
    and merely remove all temporary files known to divcollct.

    -d Remove all sessions INCLUDING the CURRENT session
    (Use with extreme caution! Everything goes!)

    -xsh Turn off verbose progress messages, as if from PathFinder.
    The program title and exit messages are suppressed.

    Exit Status: 0 = Successful completion.
    -1 (255) = Fatal exit, program aborted.

    See Also: xyhelp divsess
    ----------------------------------

Reply
  • Indeed like Chris said, the divcollct utility is what you are looking for.
    Here is what xyhelp divcollct has to say about this handy tool:

    ------------------------------------
    DIVCOLLCT is an application, run from PathFinder or from the
    command line, to clean up a division by eliminating some or all the files
    associated with previous sessions. Command line options are:

    divcollct With no arguments, removes all files associated with all
    sessions except the current session.

    -cd divpath Directory path name of a division.

    -a# Retain the current session and # backup sessions. Use any
    large number (e.g. -a99) to retain all backup sessions
    and merely remove all temporary files known to divcollct.

    -d Remove all sessions INCLUDING the CURRENT session
    (Use with extreme caution! Everything goes!)

    -xsh Turn off verbose progress messages, as if from PathFinder.
    The program title and exit messages are suppressed.

    Exit Status: 0 = Successful completion.
    -1 (255) = Fatal exit, program aborted.

    See Also: xyhelp divsess
    ----------------------------------

Children