免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2795 | 回复: 5
打印 上一主题 下一主题

[系统管理] 【求助】docker里面的crontab部分不执行,但日志里面显示执行了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2017-07-06 17:23 |只看该作者 |倒序浏览
请大神帮忙指点下,先谢谢了。
定时了2个任务,第一个能正常执行,第二个不行,但日志显示都执行了。
crontab实现文件每3分钟拷贝一个文件到相应文件夹;然后应用程序每5分钟读取解析这个文件,把解析的每行数据插入MySQL数据库。
crontab -l:
  1. */3 * * * * /tmp/cp_file.sh
  2.         */5 * * * * /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
复制代码
cron日志:
  1. Jul  6 08:57:01 37f8bbce7b38 CROND[718]: (root) CMD (/tmp/cp_file.sh)
  2. Jul  6 09:00:01 37f8bbce7b38 CROND[723]: (root) CMD (/tmp/aiFileTrans -c /tmp/aiFileTrans.xml)
  3. Jul  6 09:00:01 37f8bbce7b38 CROND[724]: (root) CMD (/tmp/cp_file.sh)
  4. Jul  6 09:01:01 37f8bbce7b38 CROND[731]: (root) CMD (run-parts /etc/cron.hourly)
  5. Jul  6 09:01:01 37f8bbce7b38 run-parts(/etc/cron.hourly)[731]: starting 0anacron
  6. Jul  6 09:01:01 37f8bbce7b38 anacron[740]: Anacron started on 2017-07-06
  7. Jul  6 09:01:01 37f8bbce7b38 anacron[740]: Will run job `cron.daily' in 6 min.
  8. Jul  6 09:01:01 37f8bbce7b38 anacron[740]: Will run job `cron.weekly' in 26 min.
  9. Jul  6 09:01:01 37f8bbce7b38 anacron[740]: Will run job `cron.monthly' in 46 min.
  10. Jul  6 09:01:01 37f8bbce7b38 anacron[740]: Jobs will be executed sequentially
  11. Jul  6 09:01:01 37f8bbce7b38 run-parts(/etc/cron.hourly)[742]: finished 0anacron
  12. Jul  6 09:03:01 37f8bbce7b38 CROND[745]: (root) CMD (/tmp/cp_file.sh)
  13. Jul  6 09:05:01 37f8bbce7b38 CROND[748]: (root) CMD (/tmp/aiFileTrans -c /tmp/aiFileTrans.xml)
  14. Jul  6 09:06:01 37f8bbce7b38 CROND[757]: (root) CMD (/tmp/cp_file.sh)
  15. Jul  6 09:07:01 37f8bbce7b38 anacron[740]: Job `cron.daily' started
  16. Jul  6 09:07:01 37f8bbce7b38 run-parts(/etc/cron.daily)[759]: starting logrotate
  17. Jul  6 09:07:01 37f8bbce7b38 run-parts(/etc/cron.daily)[767]: finished logrotate
  18. Jul  6 09:07:01 37f8bbce7b38 anacron[740]: Job `cron.daily' terminated
  19. Jul  6 09:09:01 37f8bbce7b38 CROND[769]: (root) CMD (/tmp/cp_file.sh)
复制代码
第二个应用程序的日志,显示的时间和docker的时间不一致,但下面的日志都不是crontab完成的,是我之前手动运行的:
  1. 2017-07-06 15:15:43 <LL_INFO> ************* aiFileTrans log *************
  2. 2017-07-06 15:15:43 <LL_INFO> parsing xml file complete, the config info:
  3. 2017-07-06 15:15:43 <LL_INFO> log_path:./aiFileTrans.log
  4. 2017-07-06 15:15:43 <LL_INFO> log_level:5
  5. 2017-07-06 15:15:43 <LL_INFO> src_path:./testDir
  6. 2017-07-06 15:15:43 <LL_INFO> access_dest_path:./aDir
  7. 2017-07-06 15:15:43 <LL_INFO> bss_dest_path:./bDir
  8. 2017-07-06 15:15:43 <LL_INFO> bak_path:./bakDir
  9. 2017-07-06 15:15:43 <LL_INFO> db_user_name:root
  10. 2017-07-06 15:15:43 <LL_INFO> db_user_pwd:123456
  11. 2017-07-06 15:15:43 <LL_INFO> db_database_name:docker
  12. 2017-07-06 15:15:43 <LL_INFO> db_database_ip:172.18.0.2
  13. 2017-07-06 15:15:43 <LL_INFO> db_database_port:3306
  14. 2017-07-06 15:15:43 <LL_INFO> parsing xml file success.
  15. 2017-07-06 15:15:43 <LL_INFO> database connection is OK.
  16. 2017-07-06 15:15:43 <LL_INFO> source path:./testDir, accessPath:./aDir, bss/detail Path:./bDir, bakPath:./bakDir
  17. 2017-07-06 15:15:43 <LL_INFO> folder:aDir created.
  18. 2017-07-06 15:15:43 <LL_INFO> folder:bDir created.
  19. 2017-07-06 15:15:43 <LL_INFO> folder:bakDir created.
  20. 2017-07-06 15:15:43 <LL_INFO> folder:bakDir/temp created.
  21. 2017-07-06 15:15:43 <LL_INFO> ./testDir/d_201708171733_234523.dat(1 line, size:0MB) processed and moved
  22. 2017-07-06 15:15:43 <LL_INFO> total cost time38.996201ms.
  23. 2017-07-06 16:29:05 <LL_INFO> ************* aiFileTrans log *************
  24. 2017-07-06 16:29:05 <LL_INFO> parsing xml file complete, the config info:
  25. 2017-07-06 16:29:05 <LL_INFO> log_path:./aiFileTrans.log
  26. 2017-07-06 16:29:05 <LL_INFO> log_level:5
  27. 2017-07-06 16:29:05 <LL_INFO> src_path:./testDir
  28. 2017-07-06 16:29:05 <LL_INFO> access_dest_path:./aDir
  29. 2017-07-06 16:29:05 <LL_INFO> bss_dest_path:./bDir
  30. 2017-07-06 16:29:05 <LL_INFO> bak_path:./bakDir
  31. 2017-07-06 16:29:05 <LL_INFO> db_user_name:root
  32. 2017-07-06 16:29:05 <LL_INFO> db_user_pwd:123456
  33. 2017-07-06 16:29:05 <LL_INFO> db_database_name:docker
  34. 2017-07-06 16:29:05 <LL_INFO> db_database_ip:172.18.0.2
  35. 2017-07-06 16:29:05 <LL_INFO> db_database_port:3306
  36. 2017-07-06 16:29:05 <LL_INFO> parsing xml file success.
  37. 2017-07-06 16:29:05 <LL_INFO> database connection is OK.
  38. 2017-07-06 16:29:05 <LL_INFO> source path:./testDir, accessPath:./aDir, bss/detail Path:./bDir, bakPath:./bakDir
  39. 2017-07-06 16:29:05 <LL_INFO> ./testDir/d_201708171733_234523.dat(1 line, size:0MB) processed and moved
  40. 2017-07-06 16:29:05 <LL_INFO> total cost time59.900293ms.
复制代码



论坛徽章:
0
2 [报告]
发表于 2017-07-07 09:28 |只看该作者
通过导出执行过程,发现报错:cannot execute binary file
然后我把第二个任务写到一个脚本里面,加上了先执行环境变量:
  1. !/bin/bash
  2. . /etc/profile
  3. . ~/.bash_profile
  4. /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
复制代码

还是不运行第二个crontab任务,请大神指点,先谢谢了

具体过程:把第二个任务改为如下后(导出执行过程):
[code=text]
*/2 * * * * /tmp/aiFileTrans -c /tmp/aiFileTrans.xml >/root/1.txt 2>&1
[/code]
/root/1.txt 的内容(报错信息)为:
[code=text]
/tmp/aiFileTrans: /tmp/aiFileTrans: cannot execute binary file
[/code]
之后我把第二行(第二个任务)写到cp_file3.sh里面,加了运行权限:
[code=text]
*/2 * * * * sh -x /tmp/cp_file3.sh >/root/1.txt 2>&1
[/code]
/root/1.txt 的内容(报错信息)为(每行加上了编号):
[code=text]
      1 + '!/bin/bash'
      2 /tmp/cp_file3.sh: line 1: !/bin/bash: No such file or directory
      3 + . /etc/profile
      4 ++ '[' -x /usr/bin/id ']'
      5 ++ '[' -z 0 ']'
      6 +++ /usr/bin/id -un
      7 ++ USER=root
      8 ++ LOGNAME=root
      9 ++ MAIL=/var/spool/mail/root
     10 ++ '[' 0 = 0 ']'
     11 ++ pathmunge /sbin
     12 ++ case "{PATH}:" in
     13 ++ '[' '' = after ']'
     14 ++ PATH=/sbin:/usr/bin:/bin
     15 ++ pathmunge /usr/sbin
     16 ++ case "{PATH}:" in
     17 ++ '[' '' = after ']'
     18 ++ PATH=/usr/sbin:/sbin:/usr/bin:/bin
     19 ++ pathmunge /usr/local/sbin
     20 ++ case "{PATH}:" in
     21 ++ '[' '' = after ']'
     22 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin
     23 +++ /bin/hostname
     24 ++ HOSTNAME=37f8bbce7b38
     25 ++ HISTSIZE=1000
     26 ++ '[' '' = ignorespace ']'
     27 ++ export HISTCONTROL=ignoredups
     28 ++ HISTCONTROL=ignoredups
     29 ++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
     30 ++ '[' 0 -gt 199 ']'
     31 ++ umask 022
     32 ++ for i in '/etc/profile.d/*.sh'
     33 ++ '[' -r /etc/profile.d/colorls.sh ']'
     34 ++ '[' hxB '!=' hxB ']'
     35 ++ . /etc/profile.d/colorls.sh
     36 ++ for i in '/etc/profile.d/*.sh'
     37 ++ '[' -r /etc/profile.d/glib2.sh ']'
     38 ++ '[' hxB '!=' hxB ']'
     39 ++ . /etc/profile.d/glib2.sh
     40 ++ for i in '/etc/profile.d/*.sh'
     41 ++ '[' -r /etc/profile.d/lang.sh ']'
     42 ++ '[' hxB '!=' hxB ']'
     43 ++ . /etc/profile.d/lang.sh
     44 ++ for i in '/etc/profile.d/*.sh'
     45 ++ '[' -r /etc/profile.d/less.sh ']'
     46 ++ '[' hxB '!=' hxB ']'
     47 ++ . /etc/profile.d/less.sh
     48 ++ unset i
     49 ++ unset -f pathmunge
     50 + . /root/.bash_profile
     51 ++ '[' -f /root/.bashrc ']'
     52 ++ . /root/.bashrc
     53 +++ alias 'rm=rm -i'
     54 +++ alias 'cp=cp -i'
     55 +++ alias 'mv=mv -i'
     56 +++ '[' -f /etc/bashrc ']'
         57 +++ . /etc/bashrc
     58 ++++ '[' '' ']'
     59 ++++ shopt -q login_shell
     60 ++++ '[' 0 -gt 199 ']'
     61 ++++ umask 022
     62 ++++ for i in '/etc/profile.d/*.sh'
     63 ++++ '[' -r /etc/profile.d/colorls.sh ']'
     64 ++++ '[' '' ']'
     65 ++++ . /etc/profile.d/colorls.sh
     66 ++++ for i in '/etc/profile.d/*.sh'
     67 ++++ '[' -r /etc/profile.d/glib2.sh ']'
     68 ++++ '[' '' ']'
     69 ++++ . /etc/profile.d/glib2.sh
     70 ++++ for i in '/etc/profile.d/*.sh'
     71 ++++ '[' -r /etc/profile.d/lang.sh ']'
     72 ++++ '[' '' ']'
     73 ++++ . /etc/profile.d/lang.sh
     74 ++++ for i in '/etc/profile.d/*.sh'
     75 ++++ '[' -r /etc/profile.d/less.sh ']'
     76 ++++ '[' '' ']'
     77 ++++ . /etc/profile.d/less.sh
     78 ++++ unset i
     79 ++++ unset pathmunge
     80 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/root/bin
     81 ++ export PATH
     82 + /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
[/code]

论坛徽章:
0
3 [报告]
发表于 2017-07-07 09:29 |只看该作者

【求助】docker里面的crontab部分不执行,但日志里面显示执行了

通过导出执行过程,发现报错:cannot execute binary file
然后我把第二个任务写到一个脚本里面,加上了先执行环境变量:
[code=text]
!/bin/bash
. /etc/profile
. ~/.bash_profile
/tmp/aiFileTrans -c /tmp/aiFileTrans.xml
[/code]
还是不运行第二个crontab任务,请大神指点,先谢谢了

具体过程:把第二个任务改为如下后(导出执行过程):
[code=text]
*/2 * * * * /tmp/aiFileTrans -c /tmp/aiFileTrans.xml >/root/1.txt 2>&1
[/code]
/root/1.txt 的内容(报错信息)为:
[code=text]
/tmp/aiFileTrans: /tmp/aiFileTrans: cannot execute binary file
[/code]
之后我把第二行(第二个任务)写到cp_file3.sh里面,加了运行权限:
[code=text]
*/2 * * * * sh -x /tmp/cp_file3.sh >/root/1.txt 2>&1
[/code]
/root/1.txt 的内容(报错信息)为(每行加上了编号):
[code=text]
      1 + '!/bin/bash'
      2 /tmp/cp_file3.sh: line 1: !/bin/bash: No such file or directory
      3 + . /etc/profile
      4 ++ '[' -x /usr/bin/id ']'
      5 ++ '[' -z 0 ']'
      6 +++ /usr/bin/id -un
      7 ++ USER=root
      8 ++ LOGNAME=root
      9 ++ MAIL=/var/spool/mail/root
     10 ++ '[' 0 = 0 ']'
     11 ++ pathmunge /sbin
     12 ++ case "{PATH}:" in
     13 ++ '[' '' = after ']'
     14 ++ PATH=/sbin:/usr/bin:/bin
     15 ++ pathmunge /usr/sbin
     16 ++ case "{PATH}:" in
     17 ++ '[' '' = after ']'
     18 ++ PATH=/usr/sbin:/sbin:/usr/bin:/bin
     19 ++ pathmunge /usr/local/sbin
     20 ++ case "{PATH}:" in
     21 ++ '[' '' = after ']'
     22 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin
     23 +++ /bin/hostname
     24 ++ HOSTNAME=37f8bbce7b38
     25 ++ HISTSIZE=1000
     26 ++ '[' '' = ignorespace ']'
     27 ++ export HISTCONTROL=ignoredups
     28 ++ HISTCONTROL=ignoredups
     29 ++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
     30 ++ '[' 0 -gt 199 ']'
     31 ++ umask 022
     32 ++ for i in '/etc/profile.d/*.sh'
     33 ++ '[' -r /etc/profile.d/colorls.sh ']'
     34 ++ '[' hxB '!=' hxB ']'
     35 ++ . /etc/profile.d/colorls.sh
     36 ++ for i in '/etc/profile.d/*.sh'
     37 ++ '[' -r /etc/profile.d/glib2.sh ']'
     38 ++ '[' hxB '!=' hxB ']'
     39 ++ . /etc/profile.d/glib2.sh
     40 ++ for i in '/etc/profile.d/*.sh'
     41 ++ '[' -r /etc/profile.d/lang.sh ']'
     42 ++ '[' hxB '!=' hxB ']'
     43 ++ . /etc/profile.d/lang.sh
     44 ++ for i in '/etc/profile.d/*.sh'
     45 ++ '[' -r /etc/profile.d/less.sh ']'
     46 ++ '[' hxB '!=' hxB ']'
     47 ++ . /etc/profile.d/less.sh
     48 ++ unset i
     49 ++ unset -f pathmunge
     50 + . /root/.bash_profile
     51 ++ '[' -f /root/.bashrc ']'
     52 ++ . /root/.bashrc
     53 +++ alias 'rm=rm -i'
     54 +++ alias 'cp=cp -i'
     55 +++ alias 'mv=mv -i'
     56 +++ '[' -f /etc/bashrc ']'
         57 +++ . /etc/bashrc
     58 ++++ '[' '' ']'
     59 ++++ shopt -q login_shell
     60 ++++ '[' 0 -gt 199 ']'
     61 ++++ umask 022
     62 ++++ for i in '/etc/profile.d/*.sh'
     63 ++++ '[' -r /etc/profile.d/colorls.sh ']'
     64 ++++ '[' '' ']'
     65 ++++ . /etc/profile.d/colorls.sh
     66 ++++ for i in '/etc/profile.d/*.sh'
     67 ++++ '[' -r /etc/profile.d/glib2.sh ']'
     68 ++++ '[' '' ']'
     69 ++++ . /etc/profile.d/glib2.sh
     70 ++++ for i in '/etc/profile.d/*.sh'
     71 ++++ '[' -r /etc/profile.d/lang.sh ']'
     72 ++++ '[' '' ']'
     73 ++++ . /etc/profile.d/lang.sh
     74 ++++ for i in '/etc/profile.d/*.sh'
     75 ++++ '[' -r /etc/profile.d/less.sh ']'
     76 ++++ '[' '' ']'
     77 ++++ . /etc/profile.d/less.sh
     78 ++++ unset i
     79 ++++ unset pathmunge
     80 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/root/bin
     81 ++ export PATH
     82 + /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
[/code]

论坛徽章:
0
4 [报告]
发表于 2017-07-07 09:31 |只看该作者

【求助】docker里面的crontab部分不执行,但日志里面显示执行了

通过导出执行过程,发现报错:cannot execute binary file
然后我把第二个任务写到一个脚本里面,加上了先执行环境变量:
  1. !/bin/bash
  2. . /etc/profile
  3. . ~/.bash_profile
  4. /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
复制代码
还是不运行第二个crontab任务,请大神指点,先谢谢了

具体过程:把第二个任务改为如下后(导出执行过程):

  1. */2 * * * * /tmp/aiFileTrans -c /tmp/aiFileTrans.xml >/root/1.txt 2>&1
复制代码

/root/1.txt 的内容(报错信息)为:
  1. /tmp/aiFileTrans: /tmp/aiFileTrans: cannot execute binary file
复制代码
之后我把第二行(第二个任务)写到cp_file3.sh里面,加了运行权限:
  1. */2 * * * * sh -x /tmp/cp_file3.sh >/root/1.txt 2>&1
复制代码
/root/1.txt 的内容(报错信息)为(每行加上了编号):
  1.       1 + '!/bin/bash'
  2.       2 /tmp/cp_file3.sh: line 1: !/bin/bash: No such file or directory
  3.       3 + . /etc/profile
  4.       4 ++ '[' -x /usr/bin/id ']'
  5.       5 ++ '[' -z 0 ']'
  6.       6 +++ /usr/bin/id -un
  7.       7 ++ USER=root
  8.       8 ++ LOGNAME=root
  9.       9 ++ MAIL=/var/spool/mail/root
  10.      10 ++ '[' 0 = 0 ']'
  11.      11 ++ pathmunge /sbin
  12.      12 ++ case ":${PATH}:" in
  13.      13 ++ '[' '' = after ']'
  14.      14 ++ PATH=/sbin:/usr/bin:/bin
  15.      15 ++ pathmunge /usr/sbin
  16.      16 ++ case ":${PATH}:" in
  17.      17 ++ '[' '' = after ']'
  18.      18 ++ PATH=/usr/sbin:/sbin:/usr/bin:/bin
  19.      19 ++ pathmunge /usr/local/sbin
  20.      20 ++ case ":${PATH}:" in
  21.      21 ++ '[' '' = after ']'
  22.      22 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin
  23.      23 +++ /bin/hostname
  24.      24 ++ HOSTNAME=37f8bbce7b38
  25.      25 ++ HISTSIZE=1000
  26.      26 ++ '[' '' = ignorespace ']'
  27.      27 ++ export HISTCONTROL=ignoredups
  28.      28 ++ HISTCONTROL=ignoredups
  29.      29 ++ export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
  30.      30 ++ '[' 0 -gt 199 ']'
  31.      31 ++ umask 022
  32.      32 ++ for i in '/etc/profile.d/*.sh'
  33.      33 ++ '[' -r /etc/profile.d/colorls.sh ']'
  34.      34 ++ '[' hxB '!=' hxB ']'
  35.      35 ++ . /etc/profile.d/colorls.sh
  36.      36 ++ for i in '/etc/profile.d/*.sh'
  37.      37 ++ '[' -r /etc/profile.d/glib2.sh ']'
  38.      38 ++ '[' hxB '!=' hxB ']'
  39.      39 ++ . /etc/profile.d/glib2.sh
  40.      40 ++ for i in '/etc/profile.d/*.sh'
  41.      41 ++ '[' -r /etc/profile.d/lang.sh ']'
  42.      42 ++ '[' hxB '!=' hxB ']'
  43.      43 ++ . /etc/profile.d/lang.sh
  44.      44 ++ for i in '/etc/profile.d/*.sh'
  45.      45 ++ '[' -r /etc/profile.d/less.sh ']'
  46.      46 ++ '[' hxB '!=' hxB ']'
  47.      47 ++ . /etc/profile.d/less.sh
  48.      48 ++ unset i
  49.      49 ++ unset -f pathmunge
  50.      50 + . /root/.bash_profile
  51.      51 ++ '[' -f /root/.bashrc ']'
  52.      52 ++ . /root/.bashrc
  53.      53 +++ alias 'rm=rm -i'
  54.      54 +++ alias 'cp=cp -i'
  55.      55 +++ alias 'mv=mv -i'
  56.      56 +++ '[' -f /etc/bashrc ']'
  57.          57 +++ . /etc/bashrc
  58.      58 ++++ '[' '' ']'
  59.      59 ++++ shopt -q login_shell
  60.      60 ++++ '[' 0 -gt 199 ']'
  61.      61 ++++ umask 022
  62.      62 ++++ for i in '/etc/profile.d/*.sh'
  63.      63 ++++ '[' -r /etc/profile.d/colorls.sh ']'
  64.      64 ++++ '[' '' ']'
  65.      65 ++++ . /etc/profile.d/colorls.sh
  66.      66 ++++ for i in '/etc/profile.d/*.sh'
  67.      67 ++++ '[' -r /etc/profile.d/glib2.sh ']'
  68.      68 ++++ '[' '' ']'
  69.      69 ++++ . /etc/profile.d/glib2.sh
  70.      70 ++++ for i in '/etc/profile.d/*.sh'
  71.      71 ++++ '[' -r /etc/profile.d/lang.sh ']'
  72.      72 ++++ '[' '' ']'
  73.      73 ++++ . /etc/profile.d/lang.sh
  74.      74 ++++ for i in '/etc/profile.d/*.sh'
  75.      75 ++++ '[' -r /etc/profile.d/less.sh ']'
  76.      76 ++++ '[' '' ']'
  77.      77 ++++ . /etc/profile.d/less.sh
  78.      78 ++++ unset i
  79.      79 ++++ unset pathmunge
  80.      80 ++ PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/root/bin
  81.      81 ++ export PATH
  82.      82 + /tmp/aiFileTrans -c /tmp/aiFileTrans.xml
复制代码

论坛徽章:
9
操作系统版块每日发帖之星
日期:2016-01-08 06:20:00操作系统版块每日发帖之星
日期:2016-01-28 06:20:0015-16赛季CBA联赛之四川
日期:2016-05-17 17:50:32操作系统版块每日发帖之星
日期:2016-08-01 06:20:0015-16赛季CBA联赛之广东
日期:2016-08-01 16:01:57操作系统版块每日发帖之星
日期:2016-08-04 06:20:00IT运维版块每日发帖之星
日期:2016-08-07 06:20:00操作系统版块每日发帖之星
日期:2016-08-07 06:20:0015-16赛季CBA联赛之福建
日期:2017-03-07 17:14:27
5 [报告]
发表于 2017-07-12 17:16 |只看该作者
cron是执行了的,只是你的脚本哪里有问题,顺带说一句 第一行'!/bin/bash' 少个#,不过也没啥影响,具体还要看/tmp/aiFileTrans这个脚本,不过你也没贴出来。

论坛徽章:
0
6 [报告]
发表于 2017-07-13 14:55 |只看该作者
谢谢回复 @Riet,莫名地可以运行了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP