summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/copy_rename_20_files_tail_env/task.py')
-rw-r--r--kpov_judge/tasks/copy_rename_20_files_tail_env/task.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
index 6758e34..508185d 100644
--- a/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
+++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/task.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# TODO: finish this!
# kpov_random_helpers should be imported by add_assignment.py
+# TODO (polz):
instructions = {
'si':u"""
Prijavi se na sistem.
@@ -17,10 +17,7 @@ V domači mapi najdeš imenik Mapa z 20 datotekami.
- Napiši ukaz brez uporabe programa cron, kateri 5 minut po izvedbi izpiše vsebino imenika v katerem se trenutno nahajaš
- Napiši najkrajši ukaz, ki s pomočjo Pythona zažene preprost (integriran) HTTP strežnik kateri streže datoteke iz imenika iz katerega je bil pognan na vratih 8000
-"""
-}
-
-instructios = {
+""",
'en':u"""
Log into the system.
In your home folder you will find a directory called Folder containing 20 files.
@@ -39,7 +36,7 @@ TEST, for example polz37.
- With the help of cURL fetch the website content of www.google.com and save it into file named website.txt
- Write a command which will count the number of <div> tags in the filename website.txt and will then append the result to this same file. Command should not be logged in "bash history"!
- Write a command (don't use cron!) which will list all the files in the current directory 5 minutes after execution
-- Write shortest command possible which will with the help of Python start a simple (integrated) HTTP server and will serve the files from the current directory on port 8000.
+- Write shortest command possible which will with the help of Python start a simple (integrated) HTTP server and will serve the files from the current directory on port 8000."""
}
computers = {
@@ -80,6 +77,7 @@ params_meta = {
}
def task(IP_NM, DNS_NM, IP_static, DNS_static):
+ # TODO: (polz) this has to be changed! Get a move on!
import pxssh
import pexpect
results = dict()