mindofbeholder
mindofbeholder15mo ago

Permission denied when piping bash output to the result outputs

Running the below command in a bash script docker ps -a --format "{{.Names}}" | './result.json' I'm seeing the following error:
{
"error": {
"name": "ExecutionErr",
"message": "ExitCode: 126, last log lines:\nmain.sh: line 7: ./result.json: Permission denied"
}
}
{
"error": {
"name": "ExecutionErr",
"message": "ExitCode: 126, last log lines:\nmain.sh: line 7: ./result.json: Permission denied"
}
}
Regardless of if I pipe to result.json or result.out I get the same error. I just pulled and updated windmill. Error still occurs. I'm running windmill in docker containers.
2 Replies
Tiago Serafim
Tiago Serafim15mo ago
You should use > to get the stdout into a file
mindofbeholder
mindofbeholder15mo ago
... my bad Got it working. Thanks for taking the time to double check me.