My hosting provider panel doesn't allow to add next cron job command:
"/home/username/.acme.sh"/acme.sh --cron --home "/home/username/.acme.sh" > /dev/null
due to 'Some characters are not allowed for cron job command' error.
After reading this post about it I'm trying to understand how to run it from a script (~/run-acme.sh
) and add it to a cron job but don't know how to do it (the example is using a PHP script).
Here's the content of the run-acme.sh
script but don't know what to write before the command (source
, .
or bash
) as this answer suggests:
Option 1:
#!/usr/bin/bash
bash "/home/username/.acme.sh"/acme.sh --cron --home "/home/username/.acme.sh" > /dev/null
Option 2:
#!/usr/bin/bash
source "/home/username/.acme.sh"/acme.sh --cron --home "/home/username/.acme.sh" > /dev/null
Option 3:
#!/usr/bin/bash
. "/home/username/.acme.sh"/acme.sh --cron --home "/home/username/.acme.sh" > /dev/null
Which of these options will work? Do they run with the same result?
Important note: don't have access to crontab/SSH