Expect script does not work under crontab

后端 未结 4 948
挽巷
挽巷 2020-12-29 08:22

I have an expect script which I need to run every 3 mins on my management node to collect tx/rx values for each port attached to DCX Brocade SAN Switch usin

4条回答
  •  一个人的身影
    2020-12-29 08:37

    Changing interact to expect eof worked for me!

    Needed to remove the exit part, because I had more statements in the bash script after the expect line (calling expect inside a bash script).

提交回复
热议问题