X893

  1. Save disk image to FTP server

    Save disk partition to FTP server with zip. #!/bin/sh ftpfile=/$HOME/.netrc user_pass_server=$1 diskpart=$2 file=$3 bs=$4 count=$5 user=`echo $user_pass_server | sed 's/:.*$//'` password=`echo $user_pass_server | sed 's/.*://' | sed 's/@.*//'` server=`echo $user_pass_server | sed 's/.*.@//'` if [ "$user" = "$user_pass_server" -o "$user" = "$server" ] ; then user=anonymous password=xxx@xxx.xxx fi if [ "$diskpart" = "" ] ; then diskpart=sda1 fi if [ "$bs" = "" ] ; then bs=1M fi if [ "$file" = "" ]...


Github
Bitbucket
Codeplex
SF.net
Resume

Subscribe to x893 blog Subscribe to x893 blog