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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • analwarsi
    New Member
    • Oct 2006
    • 7

    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?
  • dtra
    New Member
    • Oct 2006
    • 2

    #2
    i'm almost certain that that's not possible
    major security risk

    this tutorial might be of some assistance though
    http://www.sitepoint.c om/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_conten ts (if that's available and you're using php)

    hth
    dave

    Comment

    • analwarsi
      New Member
      • Oct 2006
      • 7

      #3
      Javascript method equivalent to Wget

      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.

      Comment

      • analwarsi
        New Member
        • Oct 2006
        • 7

        #4
        Originally posted by dtra
        i'm almost certain that that's not possible
        major security risk

        this tutorial might be of some assistance though
        http://www.sitepoint.c om/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_conten ts (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

        Comment

        Working...