http://qs1969.pair.com?node_id=375390


in reply to Jumping Tux!

on winXP, activestate:
obfu.pl 80 24
produces...
'sleep' is not recognized as an internal of external command.
Plus a continuous scrolling of numbers. It may be good but it may need a health warning. When I get a 'proper' platform I'll try again!
Take care, wfsp

Replies are listed 'Best First'.
Re^2: Jumping Tux!
by superfrink (Curate) on Jul 18, 2004 at 23:41 UTC
    The perl code is calling the "sleep" command (ie command line program). I'm guessing WinXP doesn't have a program with that name.

    On my Slackware box though I get a message that says the argument is invalid because sleep(man 1) requires an integer number of seconds or minutes or hours or days.

    Changing the sleep command on line 121 from:
    sleep&0.05");}sub&limits&{print&"\e[3;2H";for($i=0;$
    to
    sleep&1");}sub&limits&{print&"\e[3;2H";for($i=0;$
    lets the program run but it runs at one frame per second.

    Kind of reminds me of the old FreeBSD console screen saver.
      Mmm, I've got Slackware too, but it doesn't give me problems at all. It just runs displayin' that jumping tux (and it jumps very fast!)

      X-3mE'89
      "Considerate la vostra semenza:
          Fatti non foste a viver come bruti,     Ma per seguir virtute e canoscenza"
      Divina Commedia, Inverno, Canto XXVI

        I read sleep's documentation, and it says that older versions of sleep didn't accept floating point numbers.

        X-3mE'89
        "Considerate la vostra semenza:
            Fatti non foste a viver come bruti,
            Ma per seguir virtute e canoscenza"
        Divina Commedia, Inverno, Canto XXVI