Contents of script:
#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
rm list0.txt list1.txt list2.txt list3.txt print0.txt print1.txt print2.txt print3.txt
sleep 5
./checkip-1.sh </dev/null &>/dev/null &
sleep 5
./checkip-2.sh </dev/null &>/dev/null &
sleep 5
./checkip-3.sh </dev/null &>/dev/null &
sleep 5
./checkip-4.sh </dev/null &>/dev/null &
sleep 5
The scripts within the main scripts are working fine when I run them individually but not when I am calling them from the main script. I trying to run this using this crontab entry
cd /var/www/html/dashboard/scan/ && autoscan.sh