Hi Team,
I am creating year date time folder thru groovy ExecuteScript processor and using command execute using creating sh file and writing some content in that.. and passing that sh file to downstream ExecuteStreamCommand processor. Its failing with permission error on sh file.
How to give full permission to the file which we create.
def commmnd1 = "mkdir -p /shared_path/data/poc/test/1/script"
def commmnd3 = "mkdir -p /shared_path/data/poc/test/1/output"
def process1 = commmnd1.execute();
def process3 = commmnd3.execute();
def filePath = "${script_dir}/abcd.sh"
def file2 = new File(filePath)
file2.write "#!/bin/bash\n";
and one more, ExecuteStreamCommand executing sh file and it generating some files in dynamically created by previous ExecuteScript processor and these are files does not have full permission. How to give full permission which we create folder and files dynamically.
Please suggest.
Thanks in Advance.