Skip to content

Instantly share code, notes, and snippets.

@t2psyto
Created January 6, 2014 08:25
Show Gist options
  • Select an option

  • Save t2psyto/8279823 to your computer and use it in GitHub Desktop.

Select an option

Save t2psyto/8279823 to your computer and use it in GitHub Desktop.
shell script for deploy NetCommons-2.4.2.0 to Sakura internet.
mkdir ~/temp
cd ~/temp
wget -c "http://www.netcommons.org/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89/%E3%82%B3%E3%82%A2%E3%83%91%E3%83%83%E3%82%B1%E3%83%BC%E3%82%B8/?action=cabinet_action_main_download&block_id=93&room_id=1&cabinet_id=1&file_id=2467&upload_id=5296" -O netcommons-2.4.20.tar.gz
tar xzvf netcommons-2.4.20.tar.gz html NetCommons-2.4.2.0/html
mkdir ~/www/nc2/
mv NetCommons-2.4.2.0/html/* ~/www/nc2/
rm -rf NetCommons-2.4.2.0
rm -rf netcommons-2.4.20.tar.gz
# goto http://server/nc2/htdocs/
@hyellowriver
Copy link

what does it used for?i just know alittle about shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment