can you please share examples for system command in below mentioned scenarios
1) copy file from one location to another
2) read file records count
3) execute an another bat file
4) check if file exists
All you need to do for the above requirements is to go for a bash script in the machine.
Then you may invoke this bash file from Boomi atom local to that machine.
It's more specific to bash scripting and very less that you can do from boomi, execution is the only thing I can say.
What operating system is your Atom running on?
Just a note: the Program Command shape allows you to execute arbitrary command line prompts including executing local batch scripts to do whatever you can code in a batch script, however results from the script are NOT returned back to the Boomi process. If you want the results you'll need to use a Groovy script.
Check out this post, fresh off the press: Getting Results from a System Command into Your Process
Or, not as slick but you can direct the output of the command to a file and read it.
I would say in order to fulfill your requirement, you can follow below steps:
1.) Form a shell script in BOOMI using message shape.
2.) store it on atom/molecule and name it with extension ".sh"
3.) give execute permissions to that file using "chmod" command via system command shape.
4.) run that script via system command shape.
I hope this will help.
Retrieving data ...