How to shutdown the system after file is downloaded?

Discussion in 'Command Line' started by carbon333, Feb 16, 2012.

  1. carbon333

    carbon333 New Member

    Messages:
    87
    Likes Received:
    6
    Trophy Points:
    0
  2. bashcommando

    bashcommando Active Member

    Messages:
    183
    Likes Received:
    40
    Trophy Points:
    28
    Or
    Code:
    #!/bin/sh
    export check=0
    sudo export check=1
    if [$check==1]
    then
    wget http://path/to/file
    sudo poweroff
    fi

Share This Page