FTP

This is a README.adoc file. The original repository is located here.

Task FTP

You can use curl or wget commands

Branch: ftp
Fenrir ID: ftp
Points: 10

Your solution must be located at ftp:

 ...
├─  ftp
│  ├─  part-1.sh
│  └─  part-2.sh
└─  .git

Accessing files (5 points)

Create a script part-1.sh which downloads a bash script from the server and runs it.

The server is running on server. You can connect to it using the FTP protocol.

The file you need is accessible through the endpoint java/kotlin/groovy.sh.

Credentials are passed as env variables: USER & PASSWORD.

Your script must not pollute the filesystem!

Error handling

Is not needed. We guarantee the correctness of the input data.

Questions

  • Which port does FTP use?

  • Recall the docker installation guide: how does it work?

Uploading files (5 points)

Create a script part-2.sh which uploads a file to the server.

The server is running on server. You can connect to it using the FTP protocol.

The file you need is passed as $1.

After the file is uploaded, it must be accessible through the endpoint /sieben/ein/zwei.drei.

Credentials are passed as env variables: USER & PASSWORD.

Your script must not pollute the filesystem!

Error handling

Is not needed. We guarantee the correctness of the input data.

Questions

  • What if the destination directory does not exist?

The project is licensed under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

© 2026-present Iwan Kalinin <koefic.cien@gmail.com>