Before loading I need to check if the file is indeed same , for that I thought of checking the line count but when I used ssh command it was prompting for password.
Is there any other method to check integrity?
Basically we load it in a table and we need to ensure record loaded matches with the the one present in file.
check the cksum on local server and it should match
Ok let me check why ssh is not working
---------- Post updated at 06:36 AM ---------- Previous update was at 05:16 AM ----------
Hi it seems to able to connect and run the command , however in the file I get count as well as file name , is there way I can put some thing like count separator with only file name (not full path) and last modified date of remote server
should exit with 0 if the checksums are identical.
( <(stuff) is bash process substitution, but you could use temporary files instead. Feeding cksum from stdin rather than a file means you don't need to care what the filename is.)