急需高手帮忙指点下简单脚本调用问题
发表于 : 2012-04-02 10:47
该脚本如下:
#!/bin/bash
# father script.
echo "this is the father"
FILM="A Few Good Men"
echo "I like the film :$FILM"
# call the child script
# but export variable first
export FILM
child
echo "back to father"
echo "and the film is :$FILM"
调用的“child”脚本如下:
#!/bin/bash
# child
echo "called from father..i am child"
echo "film name is :$FILM"
FILM="Die Hard"
echo "changing film to :$FILM"
|运行father脚本不能调用child脚本,具体问题为”./father:9
not found"。
希望能得到高手指点,菜鸟非常感谢。
#!/bin/bash
# father script.
echo "this is the father"
FILM="A Few Good Men"
echo "I like the film :$FILM"
# call the child script
# but export variable first
export FILM
child
echo "back to father"
echo "and the film is :$FILM"
调用的“child”脚本如下:
#!/bin/bash
# child
echo "called from father..i am child"
echo "film name is :$FILM"
FILM="Die Hard"
echo "changing film to :$FILM"
|运行father脚本不能调用child脚本,具体问题为”./father:9
希望能得到高手指点,菜鸟非常感谢。