C carbon333 Guest Feb 16, 2012 #1 Try: wget http://path/to/the/file && sudo halt You can replace wget with any command you want.
OP B bashcommando Guest May 1, 2014 #2 Or Code: #!/bin/sh export check=0 sudo export check=1 if [$check==1] then wget http://path/to/file sudo poweroff fi
Or Code: #!/bin/sh export check=0 sudo export check=1 if [$check==1] then wget http://path/to/file sudo poweroff fi