I have a cron job which executes curl command using java (ProcessBuilder class), but I'm getting Exit Code : 23 on running download command
curl -u user_name:user_pwd https://<prod_url>/etc/packages/my_packages/myPackage.zip --output myPackage.zip
FYI, I am trying to download the existed package(myPackage.zip) from PROD to DEV environment by running this command in DEV environment (We are using AEMaaCS environments). The same command will download the package from prod in my local server, but not in higher environments like DEV or STAGE.
Any help would be helpful