LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2015, 11:40 AM   #1
us_ed
Member
 
Registered: Nov 2006
Posts: 54

Rep: Reputation: 15
wget in programm C


I am use next string in program
execl("/usr/bin/wget","wget"," -nc -nd http://mirror.yandex.ru/fedora/linux/releases/22/Workstation/x86_64/os/Packages/p/",NULL);

I am get message : missing scheme.
What is error?
 
Old 08-18-2015, 12:43 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
You have to split the arguments:

Code:
execl("/usr/bin/wget", "wget", "-nc", "-nd", "http://mirror.yandex.ru/fedora/linux/releases/22/Workstation/x86_64/os/Packages/p/", NULL);
 
Old 08-18-2015, 01:22 PM   #3
us_ed
Member
 
Registered: Nov 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Thank you!
All work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resume an interrupted wget using wget.log? misterJ Linux - Software 2 06-19-2011 01:21 PM
How window in programm can be resized by another programm. rexStart Programming 1 09-23-2008 02:47 AM
Programm TV online dyool Linux - Software 2 09-03-2006 03:39 AM
Programm like DriveImage? morto Linux - Software 2 02-01-2005 09:18 AM
What Chess Programm Should I Use?? Electronkz Linux - Software 2 04-15-2004 09:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration