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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -