473,464 Members | 1,599 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

7 New Member
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 12848
dtra
2 New Member
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
analwarsi
7 New Member
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
analwarsi
7 New Member
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

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

Similar topics

8
by: wj | last post by:
Hi all, I wonder if it is possible to execute PHP-code automatically. Is it for example possible to sent an e-mail every day at lets say 9.00 pm automatically to adresses from a database? ...
7
by: Ken | last post by:
How do I call c:\wget\wget.exe from a php or html file? so I can use php variables to define the file names to download. I want to set up wget to download several files from a server to my hard...
3
by: Bob Garbados | last post by:
I'm pretty new to php\linux and I'm trying to encrypt a file using gpg from a php page on a linux box and it's not working. The following code works for executing 'ls', but not gpg... ...
4
by: Jhuola Hoptire | last post by:
Just installed J2RE 1.4.2 on a Linux server. I am very knew to the POSIX world. I couldn't dig-up much in the docs or via google about the following: 1 - Is there a standard way to make sure...
2
by: Tim Williams | last post by:
I'm trying to write a simple python program to access a MySQL database. I'm having a problem with using MySQLdb to get the results of a SQL command in a cursor. Sometimes the cursor.execute works,...
6
by: Marco | last post by:
I'm looking for a free class to download web pages from Linux. Do you know something like that? Thanks, Marco
14
by: technocrat | last post by:
db2 -t -v -f/home.../filename >output_file-name I have a java stored procedure..which has to run the above command...not sure how i can run this command through java.. any suggestions are...
1
by: raocheng | last post by:
Please see the following code. Suppose I have many shell commands to be executed. And I don't want to fork a sub shell for each command(eg: status,output = commands.getstatusoutput(cmd)) because...
1
by: mikegolden | last post by:
An application I'm working on makes extensive use of output parameters and return values, thus forcing me to use the ADODB Command object to execute the stored procs. For recordset returning stored...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.