By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,564 Members | 810 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,564 IT Pros & Developers. It's quick & easy.

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

P: 7
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
Share this Question
Share on Google+
3 Replies


P: 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

P: 7
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

P: 7
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.