-
Notifications
You must be signed in to change notification settings - Fork 0
/
exercise1_5.txt
17 lines (16 loc) · 954 Bytes
/
exercise1_5.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Script started on 2020-11-28 11:48:45+01:00 [TERM="xterm-256color" TTY="/dev/pts/2" COLUMNS="80" LINES="24"]
]0;cesc@home: ~/Documents/devopswithdocker[01;32mcesc@home[00m:[01;34m~/Documents/devopswithdocker[00m$ exitsudo docker exec -it ubuntu_curl bash[Kexit[Ksudo docker run -it --name ubuntu_curl ubuntu sh -c 'echo "Input website:"; read website; echo "Searching.."; sleep 1; curl http://$website;'
[sudo] password for cesc:
Input website:
helsinki.fi
Searching..
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://www.helsinki.fi/">here</a>.</p>
</body></html>
]0;cesc@home: ~/Documents/devopswithdocker[01;32mcesc@home[00m:[01;34m~/Documents/devopswithdocker[00m$ exit
exit
Script done on 2020-11-28 11:50:34+01:00 [COMMAND_EXIT_CODE="0"]