AutoSys Workload Automation

Expand all | Collapse all

gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.

  • 1.  gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.

    Posted Dec 14, 2015 03:49 PM

    We are using CA WAAE 11.3.6.

     

    gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.



  • 2.  Re: gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.

    Posted Dec 14, 2015 04:49 PM

    Hi,

    Do you mean NAnt script?

    Please share the joblog if you are okay with it.

    One likely reason could be the %PATH% setting.  Please add NAnt bin directory to your path environmental variable so you can use nant from command-line interface anywhere

    • Right-click "My Computer" then click "Properties"
    • Click the "Advanced" tab then the "Environmental Variables" button
    • Under the "System Variables" list find the item named "Path" then click "Edit"
    • Add to the end of the "Variable value ";C:\Program Files\nant-0.86\bin"
    • Click OK, OK, OK
    • Now test it by clicking "Start" -> "Run"
    • Type "cmd" then hit enter
    • In the command prompt type "nant" then hit enter.  If it outputs a few lines and says BUILD FAILED then your path variables are correct

     

    Thanks,

    Chandru



  • 3.  Re: gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.
    Best Answer

    Posted Dec 18, 2015 09:19 PM

    The following suggestion didn’t work. It seems, we resolved the issue by changing nant script to refer a GUNZIP.EXE in another local drive. It is a production issue. It went through fine today. It seems a local issue and not an autosys issue.

     

    Thanks to everyone who attended this issue.

     

    Edwin Daniel

    AIG Corporate Business IT,

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

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



  • 4.  Re: gunzip within an naant script not working in an windows autosys job. But the whole script works fine in the command line by the same user.

    Community Manager
    Posted Dec 18, 2015 02:37 PM

    Edwin -- were you able to solve your problem?