Basically the commands in the CRONTAB will be executed from the root folder. In-order to execute something with CARTON we are suppose to be in the directory where cpanfile resides.
I have tried CD (change directory) to the cpanfile directory and run the script.sh manually- it is working fine. but, when i schedule the same script.sh in CRONTAB it is throwing error 'carton: command not found' here is my script.sh -------------------------------- #!/bin/bash cd Desktop/projectFolder/ carton exec perl script/run.pl ---------------------------------- And my cpanfile is in the directory 'projectFolder' Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/d/optout.
