AutoSys Workload Automation

  • 1.  SCP - Job Type

    Posted Jun 24, 2015 08:58 PM

    Hi,

     

    I need a folder and it's subfolders to be copied in SCP job type

     

    My job definition is as follows

     

    update_job: fpc_tst_feed_af_dly   job_type: SCP

    machine: DSVIRTUAL1

    owner: sysautoqa@wltvsqdstage2.investments.aig.net

    permission: gx,ge,mx

    date_conditions: 0

    scp_transfer_direction: DOWNLOAD

    scp_server_name: wltvsqdstage2.investments.aig.net

    scp_server_port: 22

    scp_remote_dir: "/tmp/test_1/"

    scp_remote_name: "*"

    scp_local_name: /tmp/test_1/

    scp_target_os: UNIX

    scp_protocol: SFTP

    scp_local_user: sysautoqa@wltvsddstage2.investments.aig.net<mailto:sysautoqa@wltvsddstage2.investments.aig.net>

     

     

    I have subfolders under /tmp/test_1 in the scp_server.

     

    But it doesn't copy the folders.

     

    Is there a way to the equivalent to following command line in linux

     

    scp  -r   sysautoqa@wltvsqdstage2.investments.aig.net:/tmp/test_1/* ./

     

    Your help is appreciated.

     

    Thanks,

     

    Edwin Daniel

    AIG Business Partners

    50 Danbury Road, 2nd Floor, Wilton, CT 06897-4444

    Tel 203 529 9255 | Cell 718 902 6645 | Batch Support # +1 2035299062 (x29062) & +1 2035299063 (x29063)

    Edwin.Daniel@aig.com<mailto:Edwin.Daniel@aig.com> | www.aig.com<http://www.aig.com/>

     

     



  • 2.  Re: SCP - Job Type

    Posted Jun 25, 2015 09:41 AM

    did you try to do /* ??

    i would think that there would ba an attribute to do recursive folders.



  • 3.  Re: SCP - Job Type

    Posted Jun 25, 2015 02:02 PM

    If we provide the following jil, it just copy only the file  under  "/tmp/test_1/"  and not "/tmp/test_1/test_2/aa” etc.

     

    update_job: fpc_tst_feed_af_dly   job_type: SCP

    machine: DSVIRTUAL1

    owner: sysautoqa@wltvsqdstage2.investments.aig.net

    permission: gx,ge,mx

    date_conditions: 0

    alarm_if_fail: 1

    scp_transfer_direction: DOWNLOAD

    scp_server_name: wltvsqdstage2.investments.aig.net

    scp_server_port: 22

    scp_remote_dir: "/tmp/test_1/"

    scp_remote_name: "*"

    scp_local_name: "/tmp/test_1/"

    scp_target_os: UNIX

    scp_protocol: SFTP

    scp_local_user: sysautoqa@wltvsddstage2.investments.aig.net<mailto:sysautoqa@wltvsddstage2.investments.aig.net>

     

    Thanks,

     

    Edwin Daniel



  • 4.  Re: SCP - Job Type

    Posted Jul 01, 2015 03:22 PM

    It  ( / *)  is not working.



  • 5.  Re: SCP - Job Type

    Posted Jul 01, 2015 04:30 PM

    i say bug. open a ticket ..