Re: problem with exec

From: Date: Sat, 20 Jul 2002 12:34:21 +0000
Subject: Re: problem with exec
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108660@lists.php.net to get a copy of this message
Hi, > #!/usr/bin/perl - So you needn't call perl again > exec("perl /usr/local/apache/htdocs/mlm/test/check1.pl &"); maybe exec("/usr/local/apache/htdocs/mlm/test/check1.pl &"); or exec("/usr/bin/perl ....... > use POSIX qw(strftime); > $Date=POSIX::strftime("%Y%m%d%H%M", localtime); > system("pg_dump -S postgres -f testUDdb > > >/usr/local/apache/htdocs/mlm/admin/backup/".$Date."backup"); Why don't you do this in php direct? -- <? $Date=date("YmdHM"); echo `g_dump -S postgres -f testUDdb '/usr/local/apache/htdocs/mlm/admin/backup/'.$Date.'backup' 2>&1`; ?> --

« previous php.general (#108660) next »