
1
Алексей
no recommendations
no complaints
Project title: Refining bash script
Type of cooperation: Periodic employment
Section: Software development
Prepayment: prepayment is possible
Payment methods: Bank transfer, Electronic money
Acceptance of requests: from 2019-09-16 until 2019-10-01
Type of cooperation: Periodic employment
Section: Software development
Prepayment: prepayment is possible
Payment methods: Bank transfer, Electronic money
Acceptance of requests: from 2019-09-16 until 2019-10-01
Project description:
There's a bash script in the attachment.
The script cyclically executes a command to move files from one directory to another. Moves under the condition that if the number of files in another directory does not exceed a certain number, then move, if it exceeds, then wait 10 seconds and check the condition again.
By the way, for understanding in another directory, another program by its algorithm periodically deletes the files that fall into it. But that has nothing to do with this task.
Task. The script needs to be supplemented with a condition. Time variables are entered with accuracy to the minute. The variable will be written e.g. in 19.15 21.20 format.
That's the condition. If the current time on the server where the script is running is more variable 1 (in our example 19.15) but less variable 2 (in our example 21.20) then the above cycle should start working, if not, then wait 5 minutes and check again.
Periodically, tasks that require knowledge of Linux, bash, php arise.
I would like to work with a specialist in the long run.
There's a bash script in the attachment.
The script cyclically executes a command to move files from one directory to another. Moves under the condition that if the number of files in another directory does not exceed a certain number, then move, if it exceeds, then wait 10 seconds and check the condition again.
By the way, for understanding in another directory, another program by its algorithm periodically deletes the files that fall into it. But that has nothing to do with this task.
Task. The script needs to be supplemented with a condition. Time variables are entered with accuracy to the minute. The variable will be written e.g. in 19.15 21.20 format.
That's the condition. If the current time on the server where the script is running is more variable 1 (in our example 19.15) but less variable 2 (in our example 21.20) then the above cycle should start working, if not, then wait 5 minutes and check again.
Periodically, tasks that require knowledge of Linux, bash, php arise.
I would like to work with a specialist in the long run.
Project tags: