Automic Workload Automation

 View Only
  • 1.  autosys running scripts

    Posted Jul 17, 2019 11:35 AM
    just a bit baffled,  I have set up job to run which works well on one of my ACE

    dir='/opt/LVtechops/archive/UA1/daily'
    dir1='/opt/LVtechops/archive/UA1/monthly'
    dir2='/opt/LVtechops/archive/UA1/machines'
    dir3='/opt/LVtechops/archive/UA1/details'

    case "$1" in
    -d) autorep -J % -q > $dir/dailyUA1.`date +%d%m%Y`
    ;;
    -m) autorep -J % -q > $dir1/monthlyUA1.`date +%d%m%Y`
    autorep -w -q -M ALL > $dir2/machinesUA1.`date +%d%m%Y`
    ;;
    -u) autorep -J ALL -q > $dir1/monthlyUA1.`date +%d%m%Y`
    autorep -w -q -M ALL > $dir2/machinesUA1.`date +%d%m%Y`
    ;;
    -l) autorep -J ALL -d > $dir3/detailsUA1.`date +%d%m%Y`
    ;;

    esac




    but I have installed the script on my new ACE
    and the job cant do the autorep 

    error 
    autorep: not found [No such file or directory]

    what am i missing ?


    cheers


  • 2.  RE: autosys running scripts
    Best Answer

    Posted Jul 18, 2019 05:08 AM
    ​Hi,

    I have no clue about autosys, but this looks like plain POSIX shell code. So judging by the error message, could it be you're missing either the directory containing "autorep" in your $PATH, or an explicit absolute path in your call to autorep?

    Hth,