Changes

Jump to navigation Jump to search
532 bytes added ,  11:38, 19 March 2013
no edit summary
Line 55: Line 55:  
     Set logging level to 'num'. Valid options are: 0 - (silent, error messages
 
     Set logging level to 'num'. Valid options are: 0 - (silent, error messages
 
     only), 1 - informative (default), 2 - debug messages.
 
     only), 1 - informative (default), 2 - debug messages.
 +
</pre>
 +
 +
== Examples ==
 +
 +
To checkpoint a program with pid 1234 and write all image files into directory checkpoint one should type
 +
 +
<pre>
 +
# crtools dump -D checkpoint -t 1234
 +
</pre>
 +
 +
To restore this program detaching crtools itself, one should type
 +
 +
<pre>
 +
crtools restore -d -D checkpoint -t 1234
 +
</pre>
 +
 +
To close a file descriptor number 1 in task with pid 1234 run
 +
 +
<pre>
 +
crtools exec -t 1234 close 1
 +
</pre>
 +
 +
To open a file named /foo/bar for read-write in the task with pid 1234 run
 +
 +
<pre>
 +
crtools exec -t 1234 open '&/foo/bar' 2
 
</pre>
 
</pre>
  

Navigation menu