Skip navigation.
Home
The QNX Community Portal

View topic - how to copy link with cp?

how to copy link with cp?

For discussion of realtime and/or embedded programming.

how to copy link with cp?

Postby fanweik » Wed Jul 08, 2009 5:23 pm

Hello, friends,

today I tried to copy some files including the links under a certain folder with command cp. The files I could copy. But I failed in copying the links sometimes. System reported "can't unlink the file". What does it mean? In fact I didn't want to delete anything. Why is system not so stable, why somethimes I could, sometimes I could not? How can I copy link?

Thanks.
fanweik
New Member
 
Posts: 3
Joined: Wed Jul 01, 2009 12:54 pm

Postby Tim » Wed Jul 08, 2009 6:42 pm

Fanweik,

What copy command parameters did you use?

You need to make sure you use the -R parameter if you want to copy links.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 3 guests