diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-12-17 18:18:53 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-12-17 18:18:53 +0000 |
commit | 7512e2c7555c6e3536e1bcb6b3a328d4e9aced77 (patch) | |
tree | 19d0fd22d4b19a3d240191e896f2fe9d57ab9863 /kpov_judge/tasks/copy_rename_20_files_tail_env | |
parent | 3d5dfa916fef693611a7857f01174e6a39148f01 (diff) |
Added some comments/instructions in the task.py files, answered some questions in DEVELOPMENT-FAQ.txt
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@95 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/copy_rename_20_files_tail_env')
-rw-r--r-- | kpov_judge/tasks/copy_rename_20_files_tail_env/task.py | 10 |
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() |