Hacker News new | ask | show | jobs
by jc4p 5284 days ago
Clever idea to generate buzz while making an impact.

Edit, took a shot at it:

Is there something wrong with how you're running the scripts? My Python script seems to die saying:

    No such file or directory: '/opt/puzzles/*.in'
But your example on how you're going to run it on the bottom says you will specify an actual file rather than a wildcard. Running it locally on my machine on all your tests results in this:

    $ python test.py d.in > d_me.out
    $ md5 d.out 
    MD5 (d.out) = c6dc722a7020baacebd876d4377065ad
    $ md5 d_me.out
    MD5 (d_me.out) = c6dc722a7020baacebd876d4377065ad
So I doubt it's a silent failure in my code.
1 comments

Yup, your script should receive the path to a single file, not a wildcard. I'll take a look at the logs. :) Thanks for your feedback.
Works now, thanks!
Great!