Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Auto-Backup Questions

by athomason (Curate)
on Jun 05, 2000 at 11:58 UTC ( [id://16369]=note: print w/replies, xml ) Need Help??


in reply to Auto-Backup Questions

1) To get the output of a command into a file descriptor use something like
open(TAR, "tar <options> |") or die "couldn't tar"; print while <TAR>;

2) The webservers I've used will let you trick the browser into thinking a file has a different name by treating the script as a directory. For example, if you have a script at "http://here.com/cgi/download.cgi", you could have the browser pop up with "thisfile.tar.gz" by showing the user the URL "http://here.com/cgi/download.cgi/thisfile.tar.gz". Also make sure you send the appropriate content-type header. Check your webserver docs and give it a shot, though your mileage may vary.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found