Answer the question
In order to leave comments, you need to log in
Why do two conditions work at once in Cron?
Hello.
OS UBUNTU 16.04
There is a script:
#!/bin/sh
old_info="156387"
new_info="156390"
echo ${old_info}
echo ${new_info}
if [ "$old_info" != "$new_info" ]; then
sh /bash1/do.sh
else echo "Do nothing"
fi
*/1 * * * * sh /bash1/dyn/ip.sh
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question