Expect script does not work under crontab

后端 未结 4 926
挽巷
挽巷 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:36

    I had the same issue, except that my script was ending with

    interact
    

    Finally I got it working by replacing it with these two lines:

    expect eof
    exit
    

提交回复
热议问题