make.sh 468 B

12345678910111213141516
  1. #!/bin/bash
  2. # Shell脚本部分
  3. echo "开始执行Shell脚本"
  4. arm-linux-gnueabihf-gcc -lpthread -I ../libtq/include/tquart/ -I ../libtq/include/tqcommon/ -L ../libtq/lib -ltq detection_main.c predict.c svm.cpp -lm -lstdc++ -o detection_main
  5. # 嵌套Expect脚本部分
  6. expect <<- EOF
  7. # Expect脚本内容
  8. spawn scp ./detection_main root@192.168.1.102:/opt/svm_detection
  9. expect "*password:"
  10. send "embedsky\n"
  11. expect eof
  12. EOF
  13. echo "Shell脚本执行完毕"