Getting Help with hello_world

I put together a quick hack at:
http://13.59.211.16/unixgame/SamplePage.php

This allows you to play with the data using a real command line interface…type things like “cat input.txt | sort” or “man sort”

Helped me get started. Please let me know what you think.

Thanks,
Tim

:smiling_imp:
free ; df -h

Output:
total used free shared buffers cached
Mem: 1009496 583428 426068 164 28164 442932
-/+ buffers/cache: 112332 897164
Swap: 0 0 0
Filesystem Size Used Avail Use% Mounted on
devtmpfs 483M 60K 483M 1% /dev
tmpfs 493M 0 493M 0% /dev/shm
/dev/xvda1 7.9G 1.3G 6.5G 17% /

Hmm, do you think 1GB of memory is enough?
Oh, look, 6.5G of disk space available.

In other words: are you sure you want the whole internet to execute arbitrary commands on your instance? Maybe sanitize user input? Oh, look, I can even ifconfig! Well, you get the idea… Be paranoid! (And maybe install fortune :wink: )
EDIT: removed preformatted tags, it looks worse!

Thank you for trying it out.

I have installed fortune. I have my fingers crossed that people won’t do anything too malicious in the next few hours. I’m learning quite a bit from it. Not everybody has access to a UNIX command line.

See here for more fortunes: http://13.59.211.16/unixgame/SamplePage.php

Output:

I want you to organize my PASTRY trays ... my TEA-TINS are gleaming in
formation like a ROW of DRUM MAJORETTES -- please don't be FURIOUS with me --

Return Value:

0

-Tim

Hi Tim,

Nice to see you were motivated enough to put this together, but as @hawkuletz mentioned, be careful with letting people execute arbitrary commands - your server can get compromised in no-time. This is one reason why the Unix Game only accepts a very specific set of commands.

As for not everyone having access to a unix terminal: if you’re on Linux or macOS you have it by default. If you’re on Windows, cygwin is a widely used emulator. On mobile devices, there are apps that will give you a basic command line (not very practical, but they exist).

If there is interest we can certainly share a simple zip file containing the input.txt files from all challenges, allowing offline play.

There is interest for the input files, I would like to try solving the puzzles on an older Unix.

Thank you!

A zip archive containing all the input.txt files of all the currently available challenges is available from:

http://unixgame.io/media/challenge_inputs.zip