Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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'


Comment on Re: Calling mkisofs from perl cgi
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997496]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2015-07-08 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (98 votes), past polls