Qshell CP Command Error

245 pts.
Tags:
CL
Qshell
RPG
Hi, We have engineering drawings on a windows sever and the links exist to the iseries. I need to copy the drawings from one folder to another folder with the name of the mfg order they are tied to. I am using qshell and receiving the following error: Press ENTER to end terminal session. qsh: 001-0049 Syntax error on line 1: token word not expected, expecting toke n ")". The command I am using is: Command . . . . . . . . . . . . > 'cp ''/QNTC/EWINDC-2/DATAVOL/DATA/EngRecords /Approved/G-R/L007579_SER.* /QNTC/EWINDC-2/DATAVOL/DATA/EngRecords/MO_Attach/MOT EST''' Ay help is appreciated. I'm new to qshell and not sure if my syntax is correct.

Software/Hardware used:
ISeries

Answer Wiki

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

Discuss This Question: 3  Replies

 
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
    Your cp command doesn't seem to make sense. You have embedded quotes that surround both parameters together. That doesn't make sense. Why do you have quotes in there? . Tom
    125,585 pointsBadges:
    report
  • NYRANGER
    Sorry, cut and pasted off of prompt screen.

    The L007579 is the file I need to send to other folder.

    strqsh cmd('cp /qntc/ewindc-2/datavol/data/engrecords/approved/g-r/L007579_ser.* /qntc/ewindc-2/datavol/data/engrecords/mo_attach/motest')

    245 pointsBadges:
    report
  • TomLiotta

    With the embedded apostrophes removed, that becomes a very different command. Is that the command you're actually trying to run? What happens if you run these two commands either interactively or submitted to batch the way the cp command is run?

    STRQSH CMD('ls /qntc/ewindc-2/datavol/data/engrecords/approved/g-r/L007579_ser.*')
    STRQSH CMD('ls /qntc/ewindc-2/datavol/data/engrecords/mo_attach/motest')

    Those should be duplicates of the paths for your cp command, but they will go through the path resolutions separately. Any oddities will be isolated in one or the other command.

    One additional element might be missing. The user profiles of the jobs might be different and have different permissions for ls and cp. But one step at a time.

    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