linux 运行cmd文件,cmd文件如何在虚拟linux下运行
在windows下寫了一個.cmd文件,在linux下用調(diào)用的時候出現(xiàn)錯誤LECT_FIC_F_ error opening file,文件內(nèi)容如下:
variable datfile$, logfile$, write_file$;
variable line$;
list word$;
variable iret,nword,iok;
variable id,il,iw;
variable coef;
datfile$="COEF.DAT";
logfile$="COEF.LOG";
write_file$="BUCKLING.LOG";
//writing of SYSTUS DAT
id=open_file(datfile$,"write");
fprintf(id,"EXTRACT LOAD\n");
close_file(id);
//executing of LOAD EXTRACT
systus_file(datfile$,logfile$);
//reading of log file
il=open_file(logfile$,"read");
iret=readline_file(il,line$);
initialize_list(word$);
iok=0;
while ((iret!=-1) && (iok==0))
{
word$ = split_string(line$," ");
nword = length(word$);
i=1;
while(i
{
if(word$[i]=="COEFFICIENT")
{
iok=1;
word$[i+1]?;
xcoef=string_real_conversion(word$[i+1]);
xcoef?;
}
i=i+1;
}
iret=readline_file(il,line$);
}
close_file(il);
iw=open_file(write_file$,"write");
fprintf(iw,"BUCKLING_COEFFICIENT= %f\n",xcoef);
close_file(iw);
哪位高手指點一下,謝謝!
總結
以上是生活随笔為你收集整理的linux 运行cmd文件,cmd文件如何在虚拟linux下运行的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle的parse是什么意思,Or
- 下一篇: linux加载内核后如何运行app,An