Hi all, I am trying to run a script (for ex: <Appian_Home>\\cleanup.b

Hi all,
I am trying to run a script (for ex: <Appian_Home>\\cleanup.bat <parameters>) from "Command Line Execution" smart service. The error I am seeing in the "standard error"(output of smart service) is as follows:
'exports.bat' is not recognized as an internal or external command,operable program or batch file.'exports-ant.bat' is not recognized as an internal or external command,operable program or batch file.The system cannot find the path specified.'ant' is not recognized as an internal or external command,operable program or batch file. Am I missing anything here?
Could anyone clarify me regarding the configuration smart service?...

OriginalPostID-83280

OriginalPostID-83280

  Discussion posts and replies are publicly visible

Parents
  • @michael.tan What he said. Here's a screenshot and the lines in the script that you need. Setting the "Start In" option on the action screen to the scripts directory accomplishes the same thing as "cd". I just have it in my script because they are all managed and can be called independent of the scheduler.
    Task Setup: http://i.imgur.com/KVzexfZ.png
    Action Setup: http://i.imgur.com/uvnY3Rl.png
    Script lines:
    cd C:\\appian\\server\\_scripts
    call C:\\Appian\\server\\_scripts\\cleanup.bat data -target E:\\data -keep 2
Reply
  • @michael.tan What he said. Here's a screenshot and the lines in the script that you need. Setting the "Start In" option on the action screen to the scripts directory accomplishes the same thing as "cd". I just have it in my script because they are all managed and can be called independent of the scheduler.
    Task Setup: http://i.imgur.com/KVzexfZ.png
    Action Setup: http://i.imgur.com/uvnY3Rl.png
    Script lines:
    cd C:\\appian\\server\\_scripts
    call C:\\Appian\\server\\_scripts\\cleanup.bat data -target E:\\data -keep 2
Children
No Data