Re: OT What would be the best script type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 29 June 2004 02:06 pm, slim wrote:
> On Tue, 2004-06-29 at 12:50, Reuben D. Budiardja wrote:
> > On Tuesday 29 June 2004 02:38 am, slim wrote:
<snip>

> > > what Id like to do, is make a script that will gather certain dir. and
> > > files for back up, split some tar.gz files at 9.8 meg each and email
> > > them to my gmail account.
<sni>
> > I'd do it in PHP, since I know it better than shell (or bash), and just
> > do system() or exex() for calling tar, gzip and split. Efficiency should
> > not be a problem with PHP running in command line mode.
> >
>
> Yep I was looking at some ways in php to do this. but I cant get by
> the fact that I'll more than likely need two scripts.
>
> one to do the backup, zip and split and one to retrieve the files and
> send via e-mail...

I fail to understand why you need two scripts. If you use exec() or system() 
in PHP, the script won't continue until it returns.

RDB
-- 
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux