Skip to content

Tag: bash

Iterate through commands and execute in bash

I wrote a script that transfers a new key to my AWS instances. The script executes with no errors, but when I check the ~/.ssh/authorized_keys file on the instance, I do not see the new SSH key. Here is the script: It does print out “Key copied” I have changed the ip addresses of the servers. If I…

Bash increase pid kernel to unlimited for huge loop

I’ve been try to make cURL on a huge loop and I run the cURL into background process with bash, there are about 904 domains that will be cURLed and the problem is that 904 domains can’t all be embedded because of the PID limit on the Linux kernel. I have tried adding pid_max to 4194303 (I read in …