<div dir="ltr">Hi All,<div><br></div><div>I am trying to migrate a c program(process) from one nod to another node.</div><div>Doing above running CRIU commands in shell prompt works fine.</div><div><br></div><div>Now i am trying to automate the process by writing the shell script.</div><div>My script runs on the primary node say NODE1 and triggers a ssh connection to NODE2 to launch page-server.</div><div>In the same script i run the dump command on NODE1 and on successful dumping i trigger another ssh call to run the restore command on the NODE2.</div><div><br></div><div>This is how i do :</div><div><br></div><div>ssh username@IP &#39;bash -s&#39; &lt; restore.sh </div><div><br></div><div>restore.sh is another script residing on the NODE1 which triggers restore command on NODE2.</div><div><br></div><div>#! /bin/bash </div><div><br></div><div>sudo criu restore --tree &lt;pid&gt; --shell-job --images-dir &lt;path&gt; -d</div><div><br></div><div>Doing so i am flashed with this below mentioned error. </div><div><b><font size="4">Error: #tty: Standard stream is not a terminal, aborting</font></b><br></div><div><b><font size="4"><br></font></b></div><div>I have read the conversation related to the same issue @</div><div><a href="https://lists.openvz.org/pipermail/criu/2014-September/016100.html">https://lists.openvz.org/pipermail/criu/2014-September/016100.html</a></div><div> </div><div>As suggested solution of removing option &quot;--shell-job&quot; i have this problem </div><div><b><font size="4">Error: #tty: Found slave peer index 2 without correspond master peer</font></b><br></div><div>  </div><div>Kindly suggested the possible solutions and work around to overcome the same.</div><div><br></div><div>I would really appreciate your help.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div>Prashanth Chillabatte </div></div>