Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Calling mkisofs from perl cgi

by tobyink (Abbot)
on Oct 05, 2012 at 15:12 UTC ( #997496=note: print w/replies, xml ) Need Help??

in reply to Calling mkisofs from perl cgi

What happens when you run your CGI script from the command line?

perl your-script.cgi > tmp.iso

Do you get the 4 GB ISO file then (albeit with a little HTTP crud at the start of the file)? Or do you still only get 35 KB?

Also, have you tried using a full, absolute path to the directory you want an image for, rather than just "."?

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: Calling mkisofs from perl cgi
by finfan (Acolyte) on Oct 05, 2012 at 18:43 UTC
    Still the 35KB file. I have tried to use absolute paths, but it always fails. Never have seen that before. But relative path works fine running mkisofs from the shell.
Re^2: Calling mkisofs from perl cgi
by finfan (Acolyte) on Oct 05, 2012 at 18:45 UTC
    Sorry, missed the first question. executed from command line, it generates the iso perfectly.

      If the CGI script runs OK at the command line then it's unlikely to be a Perl-specific problem. It's possible that Apache is putting an output size or time limit on your script.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
        Hi tobyink, yes, I completely concur. Thanks for the help gents.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997496]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-06-22 00:06 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.