AS400 – Shell scripting

335 pts.
Tags:
AS/400 scripts
AS400 Shell command
Shell commands
Shell scripts
cp -r /home/ARC_SETUP/ARC585_DEV/webapps/MA/* /home/backup/manew cp: 001-3007 usage: cp £-r | -R £-H | -L | -P]] £-fhipt] source_file target_file cp £-r | -R £-H | -L | -P]] £-fhipt] source_file ... target_directory When iam copying the files from one direcctory to another directorl,iam getting this error in shell command.please correct me,where i went wrong.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi tom

Sorry i did a mistake while copying the file s from one folder to another.
Actually i thought that target directory will be created on run time.i was copying the files from source to target without creating the target folder (MANEW)

thanks for ur help.
And the command was

cp -r /home/ARC_SETUP/ARC585_DEV/webapps/MA/* /home/backup/manew

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Does /home/backup/manew exist? If you remove the wildcard, what happens? That is, try it this way:
    cp -r /home/ARC_SETUP/ARC585_DEV/webapps/MA /home/backup/manew
    Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following