Changes

Jump to navigation Jump to search
4 bytes added ,  14:26, 12 April 2013
m
no 1st level headings
Line 1: Line 1: −
= Dumping a simplest process in a new session without controll terminal =
+
== Dumping a simplest process in a new session without controll terminal ==
 
At first let's dump/restore a trivial process without external dependences.
 
At first let's dump/restore a trivial process without external dependences.
 
* For that we can create a shell script, which will report date and time every second. For removing dependences on a current terminal it will be executed in a new session and output will be redirected in a file.
 
* For that we can create a shell script, which will report date and time every second. For removing dependences on a current terminal it will be executed in a new session and output will be redirected in a file.
Line 35: Line 35:  
  OK
 
  OK
   −
= Dumping one shell job =
+
== Dumping one shell job ==
 
Now let's try to dump a program, which is using a terminal. For that we need to execute our test script or another program (e.g. "top") from a terminal without redirections. crtools supports only [http://en.wikipedia.org/wiki/Pseudo_terminal Unix98 PTYs].
 
Now let's try to dump a program, which is using a terminal. For that we need to execute our test script or another program (e.g. "top") from a terminal without redirections. crtools supports only [http://en.wikipedia.org/wiki/Pseudo_terminal Unix98 PTYs].
 
  $ ./test.sh
 
  $ ./test.sh

Navigation menu