当前位置: 首页 > news >正文

ubuntu 执行定时任务crontab -e 无法输入的问题

界面显示

  GNU nano 4.8                                                  /tmp/crontab.l0A1HJ/crontab                                                             
# Edit this file to introduce tasks to be run by cron.

# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task

# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').

# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.

# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).

# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

# For more information see the manual pages of crontab(5) and cron(8)

# m h  dom mon dow   command

解决办法

先退出当前界面 ctrl+x

运行命令

我选择的2 ,选完按回车即可

select-editor

http://www.lryc.cn/news/442782.html

相关文章:

  • 快速响应:提升前端页面加载速度技巧的必知策略方案
  • VUE-CLI配置全局SCSS变量
  • 前端JavaScript导出excel,并用excel分析数据,使用SheetJS导出excel
  • 浅谈内网攻防之道-内网系统凭证钓鱼
  • fmql之ubuntu联网
  • 掌握AI创作神器:10分钟搞定ComfyUI和Flux大模型
  • React js Router 路由 2, (把写过的几个 app 组合起来)
  • Linux基础3-基础工具2(vim详解,gcc详解)
  • GEE教程:利用sentinel-2数据进行ndwi和ndci指数的计算和下载
  • markdown-it:将Markdown文本转换为HTML格式,展示在页面,怎么自定义里面的a标签设置为在新标签页打开
  • linux在工作中常用命令
  • 828华为云征文|部署知识库问答系统 MaxKB
  • 数据结构之算法复杂度
  • Python用TOPSIS熵权法重构粮食系统及期刊指标权重多属性决策MCDM研究|附数据代码...
  • 【例题】lanqiao4403 希尔排序模板题
  • 【C/C++】速通涉及string类的经典编程题
  • MySQL:库表的基本操作
  • JS领域的AI工程利器分享
  • 2024/9/20 使用QT实现扫雷游戏
  • 09.20 C++对C的扩充以及C++中的封装、SeqList
  • Git提交类型
  • C++速通LeetCode简单第18题-杨辉三角(全网唯一递归法)
  • Redis作为单线程模型,为什么效率高、速度快呢?
  • 人工智能——猴子摘香蕉问题
  • 对ViT 中Patch Embedding理解
  • Redis基本命令详解
  • Java之线程篇四
  • 计算机毕业设计之:基于微信小程序的校园流浪猫收养系统
  • SpringBoot:关于Redis的配置失效(版本问题)
  • halcon 快速定义字典