469,906 Members | 2,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,906 developers. It's quick & easy.

How to execute linux command (wget) from within javascript code

Hi,
i am new to javascript. actually i need to execute the wget command from within a javascript code, but i don't know the syntax for executing the linux-ccommands from within javascript code.
Can anyone guide please?
Oct 3 '06 #1
3 12595
dtra
2
i'm almost certain that that's not possible
major security risk

this tutorial might be of some assistance though
http://www.sitepoint.com/article/take-command-ajax

you pretty much need to have an interface to the command line
either through php, or another scripting language (obviously whatever can be run on your server)

but if you're going to use wget, you might as well use file_get_contents (if that's available and you're using php)

hth
dave
Oct 3 '06 #2
can anyone suggest a method in javascript which is equivalent to the wget command in linux.actually i need a method in javascript which will help to download webcontents upto a certain depth without the user interaction.
please guide.
Oct 3 '06 #3
i'm almost certain that that's not possible
major security risk

this tutorial might be of some assistance though
http://www.sitepoint.com/article/take-command-ajax

you pretty much need to have an interface to the command line
either through php, or another scripting language (obviously whatever can be run on your server)

but if you're going to use wget, you might as well use file_get_contents (if that's available and you're using php)

hth
dave
can You suugest any method in javascript that has the capability of downloading the contents of a website upto a certain depth without user interaction
Oct 5 '06 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by wj | last post: by
7 posts views Thread by Ken | last post: by
3 posts views Thread by Bob Garbados | last post: by
4 posts views Thread by Jhuola Hoptire | last post: by
6 posts views Thread by Marco | last post: by
14 posts views Thread by technocrat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.