Forum Discussion

chris_king's avatar
chris_king
New Contributor II
6 years ago

Unix Execute

I need to execute a shell script on a remote server. I’ve obtained the Unix Execute snap for that purpose but to configure the Unix Passwordless account I need to upload the .pem file to the snaplogic file repository. It feels a bit insecure to me and I was hoping to instead place it on our groundplex but from what I can see that isn’t an option. Has anyone else done something similar to optimise security?

  • acesario's avatar
    acesario
    Contributor II

    @Supratim Thanks for the quick response! I actually had tried using a separate pipeline, and was able to pass the parm as you suggest, however my xml output would be one row, rather than the aggregated rows. So, a. I was doing this before the map to xml. I could try it after that.
    Or better yet, b. Is there a way to have sub pipeline produce the aggregated rows, just like the parent does?

    What I mean is, Parent produces xml:
    <#root>
    <#row1>
    <#row2>
    <#row3>
    <#/root

    Child (sub) currently produces
    file1…
    <#root>
    <#row>
    <#/root>
    file 2…
    <#root>
    <#row>
    <#/root>
    file 3…
    <#root>
    <#row>
    <#/root>

    • Supratim's avatar
      Supratim
      Contributor III

      Actually you pass each row from pipeline execution snap, Move mapper to child pipeline , it should work.
      Unless the upstream snap of mapper produce multiple output of row.