I have made a bash script to get ipstats of several devices, and i have a problem with my X450a-48t, the script works fine if i execute it manually, but in crontab no output, i think because in cron no tty is allocated.
ssh -o "StrictHostKeyChecking no" firstname.lastname@example.org "show ipstats"
i have checked ssh with -t and -tt option, but doesn't work.
¿Any idea how to solve it? ¿another possibility to get this stats remotely?