Reply to comment

timer not working.

~/bin/timed-copy -v -m 80 blah.mpg
...will read using 524288 bytes buffer, for 80 minutes
...read 282.36, wrote 282.36 MBytes, took 8.42 minutes

So it looks like the alarm is fubar.

I fixed it as such...

while (1)
my $tn = time();
[...]
last if ( (($tn - $t1) / 60) > $minutes)
# last if ($timerExpired);
}

Yeah not as fancy as using signals and timers, but it works :)

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <span> <pre> <hr>
  • Lines and paragraphs break automatically.
  • You may use [acidfree:xx] tags to display acidfree videos or images inline.
  • [l:URL text] input tags replaced with HTML links. URL may be Drupal internal path. [ Link Filter Tips ]

More information about formatting options