I have a script which name is sicaklik.sh
It is in the root directory.
I can run manually but I want to run automatically every 3 minutes but it is not working. WHY?
#whoami
root
#crontab -l
#ident "@(#)root 1.21 04/03/23 SMI"
3 * * * * sh ./sicaklik.sh
#ls -l sicaklik*
-rwxrwxrwx 1 root root 135 Jul 25 01:45 sicaklik.sh
-rwxrwxrwx 1 root root 0 Jul 25 02:08 sicaklik.temp
SETRA{root}/>
#cat sicaklik.sh
/usr/sbin/ipmitool sdr type temperature | grep T_AMB > /sicaklik.temp
scp /sicaklik.temp 192.168.40.184:/usr/local/nagios/temp.temp