Score:-3

Crontab won't run Shell Script

in flag

Im trying to run a shell script with cron every day at 2am

Cron: 0 2 * * * /home/pi/TTD/startTTD.sh

File:

#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/pi/TTD
/bin/sleep 3
./TwoToneDetect71d

File location: /home/pi/TTD

./TwoToneDetect71d is an application

I've tried running it under sudo crontab -e and crontab -e with no luck

ar flag
Which version of Pi OS are you running?
Score:1
cn flag

Relative path, ./ in ./TwoToneDetect71d is your error. Instead, specify the full pathname to that application.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.