{
    "mode": "man",
    "parameter": "dislocate",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/dislocate/1/json",
    "generated": "2026-06-03T01:23:45Z",
    "synopsis": "dislocate [ program args...  ]",
    "sections": {
        "NAME": {
            "content": "Dislocate - disconnect and reconnect processes\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "dislocate [ program args...  ]\n",
            "subsections": []
        },
        "INTRODUCTION": {
            "content": "Dislocate  allows  processes  to  be  disconnected and reconnected to the terminal.  Possible\nuses:\n\n•   You can disconnect a process from a terminal at work and reconnect from  home,  to\ncontinue working.\n\n•   After  having  your line be dropped due to noise, you can get back to your process\nwithout having to restart it from scratch.\n\n•   If you have a problem that you would like to show someone, you can set up the sce‐\nnario  at  your own terminal, disconnect, walk down the hall, and reconnect on an‐\nother terminal.\n\n•   If you are in the middle of a great game (or whatever) that does not allow you  to\nsave,  and someone else kicks you off the terminal, you can disconnect, and recon‐\nnect later.\n",
            "subsections": []
        },
        "USAGE": {
            "content": "When run with no arguments, Dislocate tells you about your disconnected  processes  and  lets\nyou reconnect to one.  Otherwise, Dislocate runs the named program along with any arguments.\n\nBy  default,  ^] is an escape that lets you talk to Dislocate itself.  At that point, you can\ndisconnect (by pressing ^D) or suspend Dislocate (by pressing ^Z).\n\nAny Tcl or Expect command is also acceptable at this point.  For example, to insert the  con‐\ntents of a the file /etc/motd as if you had typed it, say:\n\nsend -i $out [exec cat /etc/motd]\n\n\nTo send the numbers 1 to 100 in response to the prompt \"next #\", say:\n\nfor {set i 0} {$i<100} {incr i} {\nexpect -i $in \"next #\"\nsend -i $out \"$i\\r\"\n}\n\nScripts can also be prepared and sourced in so that you don't have to type them on the spot.\n\nDislocate  is actually just a simple Expect script.  Feel free to make it do what you want it\nto do or just use Expect directly, without going through Dislocate.  Dislocate understands  a\nfew  special  arguments.   These should appear before any program name.  Each should be sepa‐\nrated by whitespace.  If the arguments themselves takes arguments, these should also be sepa‐\nrated by whitespace.\n\nThe -escape flag sets the escape to whatever follows.  The default escape is ^].\n",
            "subsections": []
        },
        "CAVEATS": {
            "content": "This program was written by the author as an exercise to show that communicating with discon‐\nnected processes is easy.  There are many features that could be added, but that is  not  the\nintent of this program.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Tcl(3), libexpect(3)\n\"Exploring  Expect:  A  Tcl-Based  Toolkit for Automating Interactive Programs\" by Don Libes,\nO'Reilly and Associates, January 1995.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Don Libes, National Institute of Standards and Technology\n\n\n\n7 October 1993                               DISLOCATE(1)",
            "subsections": []
        }
    },
    "summary": "Dislocate - disconnect and reconnect processes",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "Tcl",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/Tcl/3/json"
        },
        {
            "name": "libexpect",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/libexpect/3/json"
        }
    ]
}