|
I would copy the content of a directory mounted remotely in my tmp folder. Using the command: CTNML003[50] cp -r /p/demofolder .
i obtain only for some file this kind of erro: cp: cannot stat `/p/demofolder/layout/blabla/bb/sdf/sdf/fsdf/sdfds/master.tag...
Started by Rauvelore on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
The user account used for accessing the network share might have the right to read the directory... .
The first thing I would suggest looking at is access rights .
If it were a general network issue I would not expect it to always error at the same location .
|
|
H1VISA: MUMBAI ROCKS, Successfull CP for myself as well as go cp, vinor unni cp and otherd Hi All,
We had successfull CP in Mumbai.
Also others (go cp vinor unni cp) also had success. They will be in USA later next month so they suggested I should mention...
Started by H1visa on
, 30 posts
by 17 people.
Answer Snippets (Read the full thread at immigration):
HIVISA,question regarding your wifes cp case having,
1)Is it required that her passport should have the dependent visa before going for the cp here once before going to the....
No Title Congrats H1VISA.
Or an affidavit? No Title Birth Cert.
|
|
Note: # cat /tmp/foo - regular file
/lib/a.lib /lib/b.lib /lib/c.lib /lib/d.lib
cat /tmp/foo | xargs cp /tmp/fred
cp: target /lib/d.lib is not a directory
Started by Aaron on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Xargs normally places its substituted args last.
Why not try something like:
cp /lib/*.lib /tmp/fred
I think your command is failing because xargs creates the following command:
cp /tmp/fred /lib/a.lib /lib/b.lib /lib/c.lib /lib/d.lib.
|
Ask your Facebook Friends
|
Yes this is not very portable, I wonder why one would want to do something like this:`
char *cp ; reinterpret_cast<char *&>(a) = cp;
` and what it means?
Thx
Started by Andrei on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In the original sample....
Reinterpret_cast<char *>(a) = cp would have been illegal because you_cast<char*>(a); c = cp;
is probably better to maintain and read, although it's longer (note of the cast.
Lvalue to assign cp to.
|
|
Is it possible to copy a single file to multiple directories using the cp command ?
I tried the following , which did not work:
cp file1 /foo/ /bar/ cp file1 {/foo/,/bar}
I know it's possible using a for loop, or find. But is it possible using the gnu...
Started by Tom Feiner on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You can't do this....
You need to arrange to invoke cp multiple times - once per destination - for what you want to do; using, as you say, a loop or some other tool.
No, cp can copy multiple sources but will only copy to a single destination.
|
|
Add $2 shipping for each item. Combine to save.
Paypal only.
Continental US only.
Brand new in box Gloss Black CP Rail, never used, includes all mounting/set screws - SOLD
Gloss Black CP On/Off ASA (new style) includes one stainless plug - SOLD
Black ...
Started by MILKMAN1 on
, 13 posts
by 3 people.
Answer Snippets (Read the full thread at pbnation):
Pm'd about the bb PM returned.
Bold On/off Sold! bold bold bold bold bold Rail Is Mine!! Payment Sent Indeed...rail is sold .
|
|
I'm a Linux guy and I'm used to copying directory trees with cp -a . OS X doesn't have -a option on cp ... but it does have the ditto command. I'm reading the man on ditto now, but is there anything I should specifically be looking out for?
Started by trenton on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
According to the ....
Sorry that's not a direct answer.
There are also some filesystems where rsync is more efficient than cp .
As j04t pointed out that should be cp -pR
On OS X, you would do
cp -dRL src target
cp preserves.
|
|
I am trying to copy all newer jpgs from one folder to another using the following command
cp -u --force /home/oldfolder/*.jpg /home/newfolder/
and I get the following promt:
cp: overwrite `/home/newfolder/4095-181.jpg'?
The '-u' I know is working fine...
Started by icelizard on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at serverfault):
Maybe your cp command is an alias? Try:
\cp -uf file folder/
yes | cp <whatever else>
unalias cp ?
Type "type cp" to see where it points, or if it is aliased..
|
|
Is it possible to run cp again after it was aborted and make it start where it ended last time (not overwrite data that's already copied, only copy what's still left)?
Started by Phil on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
You can....
It will only copy new data across, including if cp stopped half way through a big file.
However in your case, you can use rsync now.
Rsync is a great tool also: man page at -> http .
Use the -u switch, and see the cp man page.
|
|
To Mods ; please close my last trade thread :
http://www.pojo.biz/board/showthread.php?t=995359 Thank you!
Last Updated : May 11th 2012.
YouTube Trade video :
Current Pojo Trade thread : http://www.pojo.biz/board/showthread.php?t=995359
My YouTube channel...
Started by Infernitys on
, 25 posts
by 8 people.
Answer Snippets (Read the full thread at pojo):
|