Bash scripted curl commands producing different results than manual runs -
i have text file of 900 curls run. pretty hairy, tons of quotes, apostrophes , other special characters.
to run them have been trying create bash script loop through list:
#!/bin/sh oldifs=$ifs ifs="&&&" echo "getting started" cat staging_curl_script|while read line $line done echo "done"
unfortunately have had unusual issue. commands run fine in command prompt returning "file name long" error. echoed out these commands script , compared them manually run command, , identical.
any idea why seeing different results?
silly mistake here, needed bash -c "$line"
Comments
Post a Comment