From 7512e2c7555c6e3536e1bcb6b3a328d4e9aced77 Mon Sep 17 00:00:00 2001 From: "gasperfele@fri1.uni-lj.si" Date: Wed, 17 Dec 2014 18:18:53 +0000 Subject: 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 --- kpov_judge/tasks/copy_rename_20_files_tail_env/task.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'kpov_judge/tasks/copy_rename_20_files_tail_env/task.py') 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
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() -- cgit v1.2.1