#!/usr/bin/expect下不能用for循环
发表于 : 2013-02-19 15:29
#! /usr/bin/expect
for (( i=3; i>0; i-- )) do
echo "Line $i"
done
~
提示:
wrong # args: should be "for start test next command"
while executing
"for (( i=3"
(file "./Loop-One" line 3)
在#!/bin/bash下就行,是不是,在第一个shell下就不能用for了。。
for (( i=3; i>0; i-- )) do
echo "Line $i"
done
~
提示:
wrong # args: should be "for start test next command"
while executing
"for (( i=3"
(file "./Loop-One" line 3)
在#!/bin/bash下就行,是不是,在第一个shell下就不能用for了。。