* * * * * curl -s https://테스트/index.php?mid=test&act=dispYoudocSearchChannelList > /dev/null 2>&1

 

해당 내용으로 crontab 을 연동하였습니다.

 

그런데 access.log 를 확인해보니,

 

/index.php?mid=test 까지만 실행하고 act 이후의 동작을 실행하지 않는데 혹시 crontab 상에서 curl 연동시 &와 같은 문자를 다르게 (&) 써야하나요?

 

  • ?

    "로 묶어보세요

    curl -s "https://테스트/index.php?mid=test&act=dispYoudocSearchChannelList" > /dev/null 2>&1

  • ? profile
    아하 ! string 이 아닌형태로 인식해서 주소가 뒤에서 짤렷나보군요. 답변감사합니다!!!
  • profile
    슬쩍 하나 추천 드립니다.
    https://github.com/jhuckaby/Cronicle
    cron 관리용으로 쓰고있습니다..