Home > Uncategorized > A python enigma

A python enigma

A guy wrote a script to get the size of his files. Once finished he typed :wq! and ran its script:

chmod +x fileweight.py

Then nothing happened… Unless his cursor became a cross. He tried to get his cursor back by clicking everywhere. He couldn’t get what was going on. The only new things he could see were two files named os and sys in his directory.

  1. gregor
    January 21, 2010 at 20:51

    no #!/usr/bin/python

    run which import :-)

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: