auto deft involve data with shell
来源:互联网 发布:c语言实现环形缓冲区 编辑:程序博客网 时间:2024/04/28 16:44
#!/bin/bashautodef R29.13.50 R29.13.55 dbload_13.50 135.1.68.98#!/bin/bash #####################################define the param####################################data=$3host=$4username="lss"password="lss"#####################################put the zip file to host####################################function ftp_put{ftp -v -n $1<<EOFuser lss lssbinaryhashcd /storage/zachary/promptmput $2byeEOF}#####################################get file from the host####################################function ftp_get{ftp -v -n $1<<EOFuser lss lssbinaryhashcd /storage/zachary/promptmget $2.zipbyeEOF}#####################################only one deft####################################function single_def{cp /home/imsci/CI_loads/$5/ATCA/deft_ISC${1#*R}_ISC${2#*R}.zip .deft_name="deft_ISC${1#*R}_ISC${2#*R}.zip"ftp_put $host $deft_nameecho "$deft_name"deftolab $1 $2 $3 $4 $deft_name}#####################################start main function #####################################zip -r $data.zip $datafload=${1##*.}tload=${2##*.}t=$(($tload-$fload))i=0for((i=0;i<=$t;i++)) doload_name[$i]="${1%*$fload}$((fload+i))"echo ${load_name[$i]}echo $path_tempdonefor((i=0;i<$t;i++))doecho ${load_name[$i]}path_temp="R2913.$((fload+i+1))"if(($i==0))thensingle_def ${load_name[$i]} ${load_name[$((i+1))]} $3 $4 $path_tempelsesingle_def ${load_name[$i]} ${load_name[$((i+1))]} ${load_name[$i]} $4 $path_tempfidone#!/opt/exptools/bin/expectset fload [lindex $argv 0]set tload [lindex $argv 1]set fload_data [lindex $argv 2]set rhost [lindex $argv 3]set def_name [lindex $argv 4]set timeout 4spawn telnet $rhostexpect "login:"send "lss\r"expect "Password:"send "lss\r"expect "day:"send "\r\r"expect "/home/lss:"send "cd /storage/zachary/\r"expect "/storage/zachary:"send "unzip $def_name\r"expect "/storage/zachary:"send "./DeftEvolve -i $fload_data -o $tload\r"expect "/storage/zachary:"send "rm -rf DeftEvolve checkEvolve exportData importData ip_check resynchData zip_installer deftchainData evolveData deft.info diam.info validateData evolve_admin\r"expect "/storage/zachary:"send "exit\r"interact
0 0
- auto deft involve data with shell
- Android Auto-Building Apps for Auto,Getting Started with Auto
- oracle auto backup shell script
- linux - python shell auto completion
- Emacs使用Deft管理笔记
- Data Store with ArcSDE
- Working with EXIF data
- Filtering Data with PHP
- Work with data folder
- Big Data with MATLAB
- Core Data with Mantle
- Core Data with Mantle
- Core Data with Mantle
- Forecasting with daily data
- Drawing with Data-D3
- Classification with Imbalanced Data
- Packing data with Python
- Accessing Data with JPA
- jsonp工作原理详解
- HTML5高级编程之像素处理及粒子效果
- jsp总结
- 甜美小辫子,适合不想剪刘海的亲们 ~~ (转)[心]
- 盗墓笔记 藏海花 喜欢 跟随三叔微博
- auto deft involve data with shell
- 杭电OJ 1045:Fire Net
- U-Boot启动过程完全分析
- 游标和Fetch
- xfire发布webservice
- 数据仓库与数据挖掘
- 激磁电感 于负载电流无关,于每匝伏特数量 有关
- C基础记忆
- OPENSSL库的使用-AES篇