Rules | Recent posts | topic RSS | Search | Register  | Log in

perl issue solution required to my problem

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Author Message
nipoon123



Joined: 07 Oct 2006
Posts: 3


Post26 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


Post14 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


Post14 Apr 2007 10:14   perl issue solution required to my problem

system("cp -r ~/projects/xyz/abc\ qrt ~/projects/nipoon/king/. ");

This shud work Smile
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap