Hi all -
I have an lftp program which perform a put operation and then check the size of the file.
put -O /home/ $FILE -o $FILE_NAME
du -b /home/$FILE_NAME
Now, I want to capture the output of the du command and make sure the size of the local file and size of the remote file matches.
The problem is, I am not how to capture this option to a variable so I can use it for my checking purpose.
x=du -b /home/$FILE_NAME , but it doesn't seem to work.
Any advice is highly appreciated.