Running connectd in bash script

I am using connectd to create p2p connections for a bunch of rasberry pi’s. I want to run these commands in a cron job to verify the connections are still up and running - however when i add the connectd -f file.txt & to a bash script i am getting an error accessing config file

config file /home/ec2/user/scripts/device_jennifer.txt
+failed to read config file/blob.

when i run the connectd from the command line its fine

Try using the full path to the file.txt (you may have already done so).

Please send the contents of your crontab for this command.

Is that file actually present on the Pis at the time that they need to access it?

I got it. it was a permissions error - thanks!

Glad you figured it out.