Hi,
I want to upload a file recursively using curl command, the file is in the directory where i am running the script
here is the details
1) The file rss.txt is in this directory
[ashok@qa-adm-001 rss]$ pwd
/home/ashok/rss
2) If i run POST request as a command, the file is uploaded
[ashok@qa-adm-001 rss]$ POST "http://qa-web-001.sjc1.yumenetworks.com/rsspush/processFeed?domain_id=930" < rss.txt
Success
3) When i try this in script; no error says success. But the file is not uploaded
[ashok@qa-adm-001 rss]$ cat param.sh
url="http://qa-web-001.sjc1.yumenetworks.com/rsspush/processFeed?domain_id=930"
for ((i=1;i<=$1;i++))
{
curl --silent POST $url < rss.txt
echo $i
}
[ashok@qa-adm-001 rss]$ ./param.sh 2
Success
1
Success
2
Could some one help on this where it lack..?
thanks in advance!
Ashok