I have added this code in sudo crontab -e

@reboot /var/script_test

Now I have updated my script and then I have restarted the instance.

But it 'll not getting new changes.

For Example:


echo "Hello"

Then run restart the instance, and it prints Hello.

Now I have update my script.

echo "Hello world..."

And again I have stop and start the instance.

Then it still prints Hello instead of Hello world...

0 Answers