On Thursday 27 Jan 2005 02:01, JupiterHost.Net wrote:
> >> Is it possible for me to write a perl cgi script that will echo the
> >> output from an rsync backup?
> >
> > Sure, why not :)
> >
> > Sorry, had to be done ;p
> >
> > More info needed, code you've tried, how you're doing rsync, etc
> >
> > Start with:
> >
> > #!/usr/bin/perl
> >
> > use strict;
> > use warnings;
> >
> > use CGI;
> >
> > print CGI::header();
> >
> > print "Starting rsync...<br />\n";
>
> Actually probably want to change the above two lines to:
>
> $|++;
>
> print CGI::header('text/plain');
>
> print "Starting rsync...\n";
>
> > # rsync code goes here

Cool. I'll show you what I've got later.

Thanks.

-- 
Just getting into the best language ever...
Fancy a [EMAIL PROTECTED] or something 
on http://www.perl.me.uk Just ask!!!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to