Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Create directory while copying
Name: pnbalaji Date: February 6, 2008 at 11:44:52 Pacific OS: AIX 5.3 CPU/Ram: 8GB Product: IBM
Comment:
Hi,
I have a copy statement that needs to execute from a shell script. A sample statement is given below.
The problem is the directory /bkup2/incr/a/le doesn't exist though /bkup2/incr exists. I want my cp command to create the directory if necessary and copy the file to destination.
Summary: How do I program (in C) to create a directory and then move into that directory and copy files into the new directory?? for example.. mkdir(newdirectory) chdir(newdirectory) then program a function to...
Summary: Hi , I want a unix(Unix Ware 7.1.1)user not to roam around in any of the directories other than his home directory . for which i did the following things Created an user for him with the home di...
Summary: I'm trying to copy several files generated by a fortran program to their correct directories within a script. The problem is that I want to rename those files with an extra date while copying them. i....