程式1 test_s
#!/bin/bash
echo "test_s"
value0=2
value1=9220
value2=10
value3=0x80000
程式2 run_t
#!/bin/bash
parmfile=test_s
for set_parm in $file_context
do
if [ $set_parm != "#!/bin/bash" ]; then
echo "[$set_parm]"
export "$set_parm"
fi
done
echo "value0=$value0"
echo "value1=$value1"
echo "value2=$value2"
echo "value3=$value3"
執行此程式
desktop:~$ /bin/baush run_t
[echo "test_s"]
[value0=2]
[value1=9220]
[value2=10]
[value3=0x80000]
value0=2
value1=9220
value2=10
value3=0x80000
沒有留言:
張貼留言