oneinstack | OneinStack - A PHP/JAVA Deployment Tool | Continuous Deployment library
kandi X-RAY | oneinstack Summary
kandi X-RAY | oneinstack Summary
This script is written using the shell, in order to quickly deploy LEMP/LAMP/LNMP/LNMPA/LTMP(Linux, Nginx/Tengine/OpenResty, MySQL in a production environment/MariaDB/Percona, PHP, JAVA), applicable to CentOS 7 ~ 8(including redhat), Debian 8 ~ 10, Ubuntu 16 ~ 20, Fedora 27+ of 32 and 64.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of oneinstack
oneinstack Key Features
oneinstack Examples and Code Snippets
Community Discussions
Trending Discussions on oneinstack
QUESTION
I use the command crontab -e
to execute a shell script at regular intervals.
But something wrong with it.
The shell script is located in /opt/oneinstack/oneinstack
,so my crontab is :
0 1 * * * cd /opt/oneinstack/oneinstack;./backup.sh >> /data/back.log 2>&1 &
The permission for the backup.sh file is 755.
The user using the crontab -e
command is root
Message in /data/back.log is /bin/sh no such file or directory .
Just like the title.
Manual execution the backup.sh
is no problem.
What's wrong with it? And how can I fixed it?
Expect someone to help me.Thanks a lot!!
...ANSWER
Answered 2017-Apr-12 at 07:25Try setting the following before the crontab list. For example, if this line is at the top:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install oneinstack
For feedback, questions, and to follow the progress of the project: Telegram Group OneinStack.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page