LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-25-2008, 09:01 PM   #1
fredsub
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Rep: Reputation: 0
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
 
Old 08-25-2008, 09:43 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
yes | cp src dest
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Reply "post reply" button. IsaacKuo LQ Suggestions & Feedback 16 07-01-2018 02:52 PM
Non-deprecated version of cp --reply=no punt Linux - General 4 07-03-2007 06:04 AM
rc.modules deprecated? hussar Slackware 2 09-23-2006 01:46 PM
post reply & submit reply buttons annehoog LQ Suggestions & Feedback 10 01-05-2004 06:43 PM
Evolution - reply - missing own reply emanuelgreisen Linux - Software 0 01-31-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration