snap man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

SNAP(4)								       SNAP(4)

NAME
       snap, snapfs - create and mount process snapshots

SYNOPSIS
       snap [ -o file ] pid...

       snapfs [ -a ] [ -m mtpt ] [ -s service ] file...

DESCRIPTION
       Snap  and snapfs allow one to save and restore (static) process images,
       usually for debugging on a different machine or at a different time.

       Snap writes a snapshot (see snap(6)) of the  named  processes  to  file
       (default	 standard  output).   If  pid  is  a text string rather than a
       process id, snap will save all processes with that name that are	 owned
       by the current user.  Both memory and text images are saved.

       Snapfs  is  a  file server that recreates the /proc directories for the
       processes in the snapshot.  By default, it mounts the  new  directories
       into  /proc  before  the current entries.  The -m option can be used to
       specify an alternate mountpoint, while -a will cause it	to  mount  the
       new  directories after the current entries.  The -s option causes it to
       serve requests via /srv/service.

EXAMPLE
       Suppose page has hung viewing Postscript	 on  your  terminal,  but  the
       author  is gone for the rest of the month and you want to make sure the
       process is still around for debugging on his return.  You can save  the
       errant processes with

	      snap -o page.snap `{psu | awk '$NF ~ /page|gs/ {print $2}'}

       When  the  author  returns,  he	can add the process images to his name
       space by running

	      snapfs page.snap

       and then use a conventional debugger to debug them.

SOURCE
       /sys/src/cmd/snap

SEE ALSO
       acid(1), db(1), proc(3), snap(6)

BUGS
       The snapshots take up about as much disk space as  the  processes  they
       contain	did  memory.  Compressing them when not in use is recommended,
       as is storing them on a rewritable disk.

       Pid as a non-numeric string is unimplemented; it has to be a number.

								       SNAP(4)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net