|
|
| go ahead... be a heretic | |
| PerlMonks |
Re: System command using array and pipeby philipbailey (Chaplain) |
| on Jun 04, 2011 at 08:57 UTC ( #908116=note: print w/ replies, xml ) | Need Help?? |
|
I would use a simpler solution than those presented so far: use system() with a scalar argument and simply quote the path containing a space so that the shell sees it as a single argument. system("mysqldump --add-drop-table -uroot -ppassword mydatabase | gzip -9c > '/home/username/Ubuntu One/mydatabase.sql.gz'");
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||