Hello VHelp,
Today I wrote a simple application in Linux.
The simple app will execute a wget command with an argument.
The command string looks like as given below.
wget -O 0_lr.xml -d -S -T 2 --tries=1 --waitretry=0 --header="Content-Type: text/xml" --header="SOAPAction:http://schemas.microsoft.com/" --post-file=0_lc.xml "http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8"
The intention of this command to make sure that the retry in wget should execute only once when failure noted.
When I execute this command in a terminal (CentOS 7 Terminal) I got correct result.
But when I execute the same command via system() api call in a C program then I am not getting the correct result.
ie:- wget default retry attempt is 20 and it tries 20 times instead of 1.
The wget version along with my CentOS 7 is 1.14.
What is the special things I should take care when use system() API.?
Is there any other approaches we need to take care to override the wgetrc defaults?
Kindly help !.
Regards,
Dave.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
How to scale the fragment of the video without cutting it
By JohnPix2 in forum EditingReplies: 0Last Post: 18th May 2020, 00:48 -
Wget Help
By ghostrewel in forum Video Streaming DownloadingReplies: 6Last Post: 21st Jul 2019, 18:21 -
wget from download section,...
By Selur in forum Newbie / General discussionsReplies: 2Last Post: 29th Jun 2019, 09:28 -
Youtube-dl ERROR: giving up after 10 fragment retries
By FernandaLobo in forum Video Streaming DownloadingReplies: 6Last Post: 18th Jun 2018, 21:48 -
How to make a slow-motion fragment in VSDC Free Video Editor?
By Katty.Fine in forum EditingReplies: 2Last Post: 10th Jun 2016, 04:14