有哪位高手使用过icommand命令吗

有哪位高手使用过icommand命令吗

有谁使用过icommand命令吗?
我现在要使用icommand命令做到处数据的功能。命令如下:
./icommand -cmd export -name "/Model/logModelData" -file "/global/dataExport/dataExport.xml" 

意思是,把"/Model/logModelData"导出到"/global/dataExport/dataExport.xml"文件里。可我现在需要用一个变量去替代"/global/dataExport/dataExport.xml",这个变量是一个文件名,该文件名是根据系统时间以dataExport + 年_月结尾的,如dataExport_2011_12.xml。

问题1: 用icommand命令里面可不可以使用变量
问题2: 使用变量如何做到文件名如上述规定

谢谢!

Assembly code

#!/bin/bash
fname="/global/dataExport/dataExport`date +_%Y_%m`.xml"
echo ./icommand -cmd export -name "/Model/logModelData" -file $fname

有哪位高手使用过icommand命令吗

相关文章:

你感兴趣的文章:

标签云: