finfan has asked for the wisdom of the Perl Monks concerning the following question:
mkisofs -r -T -J -V "Redhat KSBoot" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -v -o /var/www/html/linuxboot.iso .
I am trying to have apache return the iso via http as follows:I do get a file sent to the browser, but it's only 35k. It consists of roughly 100 blank lines, and then the isogen headers. It should be roughly 4GB, and that header should be the first thing in the file. I'm pulling what little hair I have left out trying to figure this one out. Any help appreciated.#!/usr/bin/perl print "Content-type: application/octet-stream\n"; print "Content-Disposition: attachment\; filename=\"kickstart.iso\"\n" +; print "Content-Transfer-Encoding: binary\n"; binmode(STDOUT); exec("mkisofs -r -T -J -V \"Redhat KSBoot\" -b pub/isolinux/isolinux.b +in -c pub/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-in +fo-table -v .");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling mkisofs from perl cgi
by tobyink (Canon) on Oct 05, 2012 at 15:12 UTC | |
by finfan (Acolyte) on Oct 05, 2012 at 18:43 UTC | |
by finfan (Acolyte) on Oct 05, 2012 at 18:45 UTC | |
by tobyink (Canon) on Oct 05, 2012 at 19:16 UTC | |
by finfan (Acolyte) on Oct 08, 2012 at 14:37 UTC | |
|
Re: Calling mkisofs from perl cgi
by choroba (Cardinal) on Oct 05, 2012 at 14:34 UTC | |
by finfan (Acolyte) on Oct 05, 2012 at 14:48 UTC | |
by choroba (Cardinal) on Oct 05, 2012 at 14:50 UTC | |
by finfan (Acolyte) on Oct 05, 2012 at 14:55 UTC |