If i run this command in linux command line manually it works, and EDIT.3126026369 is not empty
curl "http://somesite.com/admin.php?mod=editnews&action=editnews&id=14058" -s -L -b cookie.ck -c cookie.ck > EDIT.3126026369
in bash:
curl \"$EDIT\" -s -L -b $COOKIE -c $COOKIE > EDIT.$TEMP
but in a bash script it generate an empty file. what am missing here?
Use the quotes when defining your $EDIT variable:
Then lose the escaped quotes on the curl command:
Seems to work fine for me this way, how about you?