PSFTP- Compare file size


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers PSFTP- Compare file size
# 1  
Old 07-11-2011
PSFTP- Compare file size

Hi,

I'm using PSFTP to transfer files from one machine to a virtual machine with UBUNTU OS installed on it.
I'm trying to find a way to make sure the files that I'm uploading / downloading are being uploaded/ downloaded properly.
I want to compare the size of the local file and the remote file to ensure this is happening?
Does anyone know a simple way of doing this using PSFTP, that isn't manual??

Cheers
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compare file size and then copy/overwrite

// Redhat I have this code working, but need to add one more qualification so that I don't overwrite the files. #!/bin/sh cd /P2/log/cerner_prod/millennium/archive/ for f in * do || continue #If this isn't a regular file, skip it. && continue #If a backup already... (2 Replies)
Discussion started by: Daniel Gate
2 Replies

2. Shell Programming and Scripting

Compare size of one file with other file in Linux

Hi, I have 32 files for which I want to check size of each file withe other file and if size is same then some action. Any suggestion to write such script. Logic: have list of 32 files using loop first compare size of one file with remaining 31 , do same iteration for each file with... (4 Replies)
Discussion started by: hemantakhandare
4 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Is it possible to use PuTTY psftp.exe to move file from one directory to another?

Hello All, I am running a script (power shell) from my desktop (Windows). The script needs to sftp a file(using PuTTY psftp.exe ) from my desktop to a server(UNIX server). Then, as a second step, the script needs to move (or copy and delete) this file from one directory on the server (UNIX server)... (3 Replies)
Discussion started by: scampi
3 Replies

4. Shell Programming and Scripting

Script to Compare file size and delete the smaller

I am pretty new to scripting, so I appreciate your advice in advance. The problem: 100 directories each containing 2 files that have the same extension with random names. The only attribute that discriminates the files is size. I would like to write a script that compares the files for size... (6 Replies)
Discussion started by: JC_1
6 Replies

5. Shell Programming and Scripting

psftp: get all files info in a choosen file

Dear all, We are trying to get file information in a file from our sftp server with the program psftp. lcd d:\sftpInfo cd serverInfo ls *.* > qqqqq.txt After running the ls command, we see all files who are in the serverInfo directory on the screen. No error is showed. Our question is:... (3 Replies)
Discussion started by: ton2204
3 Replies

6. Shell Programming and Scripting

compare between files size

Hello i have file A created yesterday and file B created today thanks to help create script compare between 2 files according to size so if file B is less than 10% of file A i should have echo message with warning also check if file B exist or not. this should be run in loop for list of... (6 Replies)
Discussion started by: mogabr
6 Replies

7. Shell Programming and Scripting

to write a script to compare the file size in the current directory and previous dir

hi, i am new to this site. i want to write a script to compare the file size of the files in the current dir with the files in the previous directory. the files name will be same, but the filename format will be as xyzddddyymm.txt. the files will arrive with the month end date(i want to... (5 Replies)
Discussion started by: tweety
5 Replies

8. Shell Programming and Scripting

How to compare size of two file which is in one directory

I have two file in a Directory.I want a script which will compare the Size of Two file. Can Anyone Help me on this: linasplg11:/opt/dataout/kk/linasplg11 # cat size -rwxrwxrwx 1 root root 16658 Jan 8 13:58 lina_IP_SIP_1231325621210.xml -rwxr-xr-x 1 root root 16672 Jan 8 14:30... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

9. Shell Programming and Scripting

compare file size from a output file from a script

Hi guys, firstly I'm working on SunOS 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240 I've made a script to compress two directory and then send them to an other server via ftp. This is working very well. Inside theis script I decide to log usefull data for troubleshooting in case of... (7 Replies)
Discussion started by: moustik
7 Replies

10. Shell Programming and Scripting

How to compare file size after ftp?

Is possible if I want to campare file size on source and destination after ftp transfer? If anybody know, please explain to me. (1 Reply)
Discussion started by: icemania
1 Replies
Login or Register to Ask a Question
UBUNTU-DISTRO-INFO(1)					      General Commands Manual					     UBUNTU-DISTRO-INFO(1)

NAME
ubuntu-distro-info - provides information about Ubuntu's distributions SYNOPSIS
ubuntu-distro-info [OPTIONS] OPTIONS
--date=DATE date for calculating the version (default: today) -h, --help display help message and exit -a, --all list all known versions -d, --devel latest development version --lts latest long term support (LTS) version -s, --stable latest stable version --supported list of all supported stable versions --unsupported list of all unsupported stable versions -c, --codename print the codename (default) -r, --release print the release version -f, --fullname print the full name SEE ALSO
debian-distro-info(1), distro-info(1) AUTHOR
The script and this manual page was written by Benjamin Drung <bdrung@debian.org>. distro-info January 2011 UBUNTU-DISTRO-INFO(1)