metal_cd has asked for the wisdom of the Perl Monks concerning the following question:
system ("cd /path/to/dirs"); system ("tar -czvf dir1.tgz dir1/"); system ("tar -czvf dir2.tgz dir2/"); system ("tar -czvf dir3.tgz dir3/"); system ("mv /path/to/dirs/dir1.tgz /backup/dir1.tgz"); system ("mv /path/to/dirs/dir2.tgz /backup/dir2.tgz"); system ("mv /path/to/dirs/dir3.tgz /backup/dir3.tgz");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cd in perl not working?
by Corion (Patriarch) on Nov 26, 2008 at 20:52 UTC | |
by runrig (Abbot) on Nov 27, 2008 at 00:38 UTC | |
|
Re: cd in perl not working?
by oko1 (Deacon) on Nov 27, 2008 at 00:04 UTC | |
|
Re: cd in perl not working?
by jeffa (Bishop) on Nov 26, 2008 at 20:57 UTC | |
|
Re: cd in perl not working?
by metal_cd (Initiate) on Nov 27, 2008 at 02:40 UTC | |
by Anonymous Monk on Aug 12, 2014 at 16:04 UTC | |
by Bethany (Scribe) on Aug 13, 2014 at 03:53 UTC | |
by afoken (Chancellor) on Aug 14, 2014 at 19:08 UTC | |
by Bethany (Scribe) on Aug 15, 2014 at 01:32 UTC |