# changing the directory to source locationĮcho " # " > /tempdir/pvmscript/scriptlog.logĮcho `date`> /tempdir/pvmscript/scriptlog.logĮcho " script is strting " > /tempdir/pvmscript/scriptlog.log i tried to use md5sum and chksum but it was taking to long to compute on mounted folder. how will i make sure that i have completely downloaded the file. suppose file was being downloaded an at that time there was some network failure. Įvery thing is working fine only problem now is. so i am checking if a new folder is added at server by checking its name in the foldername.text file. I have maintained a text file " foldernames.txt" which have name of all those folders from which i have copied the required file. for checking if the file has been completely uploaded or not i am checking the size after every 50 sec for 5 times if it is same then i am copying it otherwise run the script after 4 hr. I mounted the ftp server folder to my local machine. this can be done by making it a cron job. I have to also check integrity of the file while copying i.e suppose the file are being uploaded to the server and at that time if i start copying in this case copying will not be complete. I have to copy file "file1.iso" from the latest folder i.e 0.7.1.72 in this case. Now in /dir1/dir2 at ftp server i have folder in following forms I have to write a shell script for bash shell to transfer file from ftp server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |