⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 batch_test.sh

📁 基于NS-2的车辆Ad Hoc网络(VANET)的一个应用层协议框架
💻 SH
字号:
#!/bin/bash# This is only an example file to help you getting started with# shell-scripting. It does not work as it is, you have to adjust# it (and the prepare the tcl file for it)!OutputDir="/home/myuser/sim_data"para1_list="1 2 3"para2_list="10 20 30"for para2 in $para2_list;do    for para1 in $para1_list;    do        cmd="ns test_batch.tcl $para1 $para2 > $OutputDir/output-p1$para1-p2$para2.txt"        echo $cmd        eval $cmd                # If you run several simulations in a batch, it may be necessary        # to delete your tracefiles at the end of every simulation, to prevent        # you from running out of disk space. there is an example on how to        # do this in the vntest.tcl file.        # Also, do not forget to define the opt(outdir) in your tcl file        # in function of the parameters, else a new simulation overwrites        # the previous one :)            donedone

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -