linux定时任务出现command not found错误怎么办

这篇文章将为大家详细讲解有关linux定时任务出现command not found错误怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

 linux定时任务出现command not found解决办法

linux定时任务出现command not found错误怎么办

第一步查看/etc/profile:
linux定时任务出现command not found错误怎么办

第二步修改 /root/.bash_profile:
linux定时任务出现command not found错误怎么办
末尾添加命令的路径
linux定时任务出现command not found错误怎么办

第三步 shell脚本修改:

#!/bin/bash

. /etc/profile
. /root/.bash_profile

脚本中添加内容如下:

linux定时任务出现command not found错误怎么办

关于“linux定时任务出现command not found错误怎么办”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。