i am new to Linux Ubuntu I had a shell script which has to redirect 18000 lines output to file. output is truncating at 2006th line. is there any buffer settings for crontab
my shell script is below rcap.sh
and my crontab entry isCode:#!/bin/bash /usr/local/bin/sshpass -p "xxxxxxxxx" ssh -2oStrictHostKeyChecking=no xxxxxxxx@10.0.0.1 "sh ip route bgp" | awk '{print $2 }' > /home/ubuntuusr/scripts/mplsupid.txt
when I run manually I am getting full 18000+ lines output to mplsupid.txtCode:* * * * * /home/ubuntuusr/scripts/rcap.sh
when I run with crontab only 2006 lines only
Bookmarks