cp --reply=yes deprecated!!
cp --reply=yes deprecated!!
so some wiseass deprecated it, it would be okay if only --force
would also work, but apparently not, because i still get a prompt.
i know in shell script i can do
cp --force file tofile <<%%
yes
%%
but i would prefer to use cp in perl
ie
#!/usr/bin/perl
system("cp --force ".$fromfile." ".$tofile);
so maybe this is a perl question, as i don't know how to do the
<<%%
yes
%%
with that perl.
or i would prefer another unix copy command that works,
Thanks
|