I am running a command, tail -300 /.sh_history, in crontab so that I can get the lines of .sh_history of root acct.
However, tail -300 /.sh_history doesn't return the correct result (just give me 20 some lines) whereas the manual entry on the prompt give me 300 lines correctly.
What would be the cause of this and the right approach with crontab?
thx much
However, tail -300 /.sh_history doesn't return the correct result (just give me 20 some lines) whereas the manual entry on the prompt give me 300 lines correctly.
What would be the cause of this and the right approach with crontab?
thx much