Changes

Jump to navigation Jump to search
364 bytes added ,  14:30, 12 April 2013
Intro
Line 1: Line 1:  +
This HOWTO describes how to dump a very simple shell scripts that just loops and shows that it's alive.
 +
 +
First of all, if you try to simply launch such program and dump it crtools will  fail. This is because the program you launch from shell shared session and terminal with the shell itself, but crtools should make sure, that no resources are used by external processes. So this simple test would be a little bit trickier, that just it.
 +
 
== 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.
   
* 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.
 
  $ cat > test.sh <<-EOF
 
  $ cat > test.sh <<-EOF

Navigation menu