Tag Info

New answers tagged


The size of the file you are getting through the HTTP server is exactly the remainer of 5345834658 mod 4294967296. That means the web server overflowed a 32-bit integer and is using the remainer as the file size. You need to upgrade to a web server that supports large files (>4GiB).


I don't know how to do this with the shell. But since the script is already trapping the interrupt signal, you might as well leverage that and add an extra command there as you can execute commands with that interpreter, like so: #!/usr/bin/env ruby require 'webrick' system *%W(sudo iptables -I INPUT -p tcp --dport 3000 -j ACCEPT) server = ...

Top 50 recent answers are included