mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Update shutit.html
shell->bash (for my poor server's health)
This commit is contained in:
parent
0567c07764
commit
fe63139343
@ -29,13 +29,13 @@ session.send('echo Hello World', echo=True)
|
|||||||
|
|
||||||
Running this with:
|
Running this with:
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
python example.py
|
python example.py
|
||||||
```
|
```
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
python example.py
|
python example.py
|
||||||
echo "Hello World"
|
echo "Hello World"
|
||||||
echo "Hello World"
|
echo "Hello World"
|
||||||
@ -122,7 +122,7 @@ session2.logout()
|
|||||||
|
|
||||||
would output:
|
would output:
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
$ python example.py
|
$ python example.py
|
||||||
Password for server1
|
Password for server1
|
||||||
Input Secret:
|
Input Secret:
|
||||||
@ -190,7 +190,7 @@ prompt to match and continue.
|
|||||||
Note also the 'check_exit' argument in the above, which is new. We'll come back
|
Note also the 'check_exit' argument in the above, which is new. We'll come back
|
||||||
to that. The output of the above is:
|
to that. The output of the above is:
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
$ python example.py
|
$ python example.py
|
||||||
telnet
|
telnet
|
||||||
telnet> open google.com 80
|
telnet> open google.com 80
|
||||||
@ -248,7 +248,7 @@ session.send('echo "Did you enjoy your pause point?"', echo=True)
|
|||||||
|
|
||||||
with output like this:
|
with output like this:
|
||||||
|
|
||||||
```shell
|
```bash
|
||||||
$ python example.py
|
$ python example.py
|
||||||
Have a look around!
|
Have a look around!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user