Ask Your Question

How can i setup shell executor to unzip files written to maprfs

asked 2017-09-09 01:41:56 -0600

ligaroba gravatar image

updated 2017-09-11 12:57:45 -0600

metadaddy gravatar image

How can I configure shell executor to unzip files after they have been written to maprfs I have set maprfs destination to produce events then I have added command as script gzip -dc $file_name > $destPath$outputfilename: exit 0; where $file_name is an enviromental variable to where the file path and name where it has been written to maprfs and $destPath$outputfilename output dir and outputfilename of the unzipped file it shows files are being processed but in the output no files are unzipped any help

edit retag flag offensive close merge delete


Can you please clarify where precisely you have configured this command? Was it a shell executor stage? In general, these kinds of commands will not support redirection since they aren't actually evaluated in a shell by SDC (but rather Java ProcessBuilder). Does the sdc.log show any errors?

jeff gravatar imagejeff ( 2017-09-11 13:15:59 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-21 13:54:19 -0600

mstang gravatar image

updated 2017-09-21 13:54:50 -0600

I create a wrapper script and then just call the wrapper from the shell executor, it makes things easier working with the shell variables, etc. If your shell executor is being triggered by an event you may need to do some testing to make sure the event is being generated and that it is set as the precondition for your shell executor.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-09-09 01:41:21 -0600

Seen: 38 times

Last updated: Sep 21 '17