Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pandolia/remote_embed
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed Dec 28, 2018
2 parents 974da40 + d6aca74 commit 1d0da56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Run the script on the remote machine, you will see the remote process break at t

In windows, you can download **nc** from [here](https://eternallybored.org/misc/netcat/).

If you just want to interact with another process at the same machine, just use **embed = Embed(port=6000)**. This will make the process break and listen on **127.0.0.1:6000**. Then you can open another terminal and run **nc 127.0.0.1 6000** to attach to and interact with it.
If you just want to interact with another process at the same machine, just use **embed = Embed(port=7000)**. This will make the process break and listen on **127.0.0.1:7000**. Then you can open another terminal and run **nc 127.0.0.1 7000** to attach to and interact with it.

If you just use **embed = Embed()**, the process will listen on **127.0.0.1:first_available_port**, and print the port being listened on its terminal(specifically: its sys.stderr).

Expand Down

0 comments on commit 1d0da56

Please sign in to comment.