I can pass variable in console and set crontab like this in php how can I do in nodejs
*/5 * * * * php /var/www/html/acairpor/airpo.php BKKe
*/5 * * * * node /path/to/script value1 value2 ...
then value1
will be stored in process.argv[2]
and value2
will be stored in process.argv[3]
... etc