| Author |
Message |
nipoon123
Joined: 07 Oct 2006 Posts: 3
|
26 Dec 2006 14:49 perl issue solution required to my problem |
|
|
|
|
Hi friends,
This is my issue in perl
The situation is i want to copy a folder from one path to another using perl.But my folder name has
space in between (i am using Linux)
i will give you an example.
system("cp -r ~/projects/xyz/abc qrt ~/projects/nipoon/king/. ");
now i want to copy the folder abc qrt inside the folder king
But the folder abc qrt is one folder having space in between (In Linux it is allowed)
I cant rename it to abc_qrt or something else (thats the constraint).
the perl script treats abc and qrt as seperate folders .
Hope you got my problem.
For adequate solution 5 pts will be given.
Thanks a lot.
Regards
Nipoon
|
|
| Back to top |
|
 |
sumit_techkgp
Joined: 01 Apr 2007 Posts: 135 Helped: 3
|
14 Apr 2007 5:11 perl issue solution required to my problem |
|
|
|
|
use it like this
$x = `cp -r ~/projects/xyz/abc qrt ~/projects/nipoon/king/. `;
it will work
|
|
| Back to top |
|
 |
shiv_emf
Joined: 31 Aug 2005 Posts: 637 Helped: 16
|
14 Apr 2007 10:14 perl issue solution required to my problem |
|
|
|
|
system("cp -r ~/projects/xyz/abc\ qrt ~/projects/nipoon/king/. ");
This shud work
|
|
| Back to top |
|
 |