The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
recursive wc on a directory? bimba17 UNIX for Dummies Questions & Answers 13 06-21-2009 11:51 AM
non recursive search in the current directory only puppala Shell Programming and Scripting 9 08-21-2008 01:03 PM
Directory Recursive Files 0.4 (Default branch) iBot Software Releases - RSS News 0 08-20-2008 04:50 PM
copy files from one directory to another directory zip_zip UNIX for Dummies Questions & Answers 5 09-14-2003 06:16 PM
recursive copy of hidden files usfrog UNIX for Advanced & Expert Users 2 02-19-2002 03:16 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-22-2008
deepthi.s deepthi.s is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 11
recursive copy of the directory

I want to copy a directory recursively ( it again has directories) and the directory is on windows and is nfsmounted in vxWorks, i am using unix to develop the code for this, can any one suggest me how to copy the directories recursively.
  #2 (permalink)  
Old 08-22-2008
palsevlohit_123 palsevlohit_123 is offline
Registered User
  
 

Join Date: Aug 2008
Location: India-Chennai
Posts: 120
cp -r source_DIR dest_DIR
  #3 (permalink)  
Old 08-22-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
ever you can use
cp -var <SRC_DIR> <DEST_DIR>
this is a verbose option with archive also
  #4 (permalink)  
Old 08-22-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
do you need a C program, i wonder as posted this in this forum..
  #5 (permalink)  
Old 08-22-2008
deepthi.s deepthi.s is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 11
I am using vxworks as an operating system, and "cp" here only will be able to copy a file.
vxWorks has function xcopy which does recursive copy, but when i use same function to copy the NFS Mounted directory(it is a directory on windows) it is not working properly.

So as an alternative i want a code which can do the same operation on vxworks based machines.
  #6 (permalink)  
Old 08-23-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
Well i think it should work fine unless you are breaching the limitations..... the maximum depth of subdirectories is 20, and at least 16 Kbytes of stack space should be available to avoid stack overflow.
Try to check it for small no of sample sub directories.. and see if it works..
  #7 (permalink)  
Old 08-23-2008
replytoshishir replytoshishir is offline
Registered User
  
 

Join Date: May 2006
Location: Bangalore
Posts: 23
Well i think it should work fine unless you are breaching the limitations..... the maximum depth of subdirectories is 20, and at least 16 Kbytes of stack space should be available to avoid stack overflow.
Try to check it for small no of sample sub directories.. and see if it works..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0