From: Brian Candler Date: 2003-05-06T23:25:38+09:00 Subject: Re: Pure ruby stream compression library? On Tue, May 06, 2003 at 10:53:44PM +0900, David Garamond wrote: > Daniel Carrera wrote: > >No I don't, but I'm interested in this problem: > > > >- Why do you not want external libraries? > > The application is to likely be deployed on a shared hosting server > where I can't control the environment. It's good enough that Ruby is > provided. > > Btw, come to think of it, zlib library should be common enough that when > ruby is there very good chances is zlib is also there. If it's a shared hosting server that lets you upload Ruby scripts, then I don't suppose they could stop you uploading or compiling your own copy of zlib (or if the compilers have been removed, uploading your own copy of gcc first :-) If you don't have shell access, try uploading this: #!/usr/local/bin/ruby require 'cgi' c = CGI::new print c.header puts "Enter command:
" if c['command'][0] puts "
"
    $stdout.flush
    system "#{c['command'][0]} 2>&1"
    $stdout.flush
    puts "
" end Suggestion: use .htaccess to prevent the whole world seeing this script, if you don't want to incur your webmaster's wrath... Cheers, Brian.