Sponsored Content
Full Discussion: remote file size
Top Forums Shell Programming and Scripting remote file size Post 302164548 by ravi raj kumar on Tuesday 5th of February 2008 06:51:21 AM
Old 02-05-2008
remote file size

hi,

I have ftp some file from linux server to local system.
After completion of ftp of a particular file i need to comparethe size of the original file(server) and transfered file(local).
How can find the size of a file stored in server from local system.

any help pls.

cheers
RRK
 

10 More Discussions You Might Find Interesting

1. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

2. Shell Programming and Scripting

file size comparision local file and remote file

Hi, I have written a script which would FTP a dump file to the FTP server and log the whole activity into a file. to confirm the success of the file copy i grep for "226 file receive OK" and then send out an email saying success. Now i want to make sure the bytes of the local file and... (4 Replies)
Discussion started by: dba.admin2008
4 Replies

3. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

4. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

5. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

6. Shell Programming and Scripting

Unable to get the size of remote file using Net::FTP Perl Script

Hi, I am using below piece of code to get the size of the remote file. $ftp->cwd($destination) or $error=$ftp->message; if(!$error) { $ftp->put($file) or $error=$ftp->message; print "FTP size = \n"; ... (3 Replies)
Discussion started by: FarooqOnline
3 Replies

7. Shell Programming and Scripting

SFTP - Get size of file on remote server

Hi, I have a requirement where I need to do SFTP connection to remote server, get the size of the file on remote server and depending on the size, i need to get the file onto local server. Is there any command in SFTP to get the size of the file. I found one in FTP but not in SFTP (2 Replies)
Discussion started by: forums123456
2 Replies

8. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

9. Shell Programming and Scripting

Retrieving file size in a remote server using SSH

Hi, I have public and private keys and that's works fine for me. now I am sending files one by one on remote server and I want to check is file successfully delivered or not by comparing size of file on local machine and remote server using ‘stat -c%s'. Below operations need to be done on... (2 Replies)
Discussion started by: ketanraut
2 Replies

10. UNIX for Beginners Questions & Answers

Get the remote server file size in UNIX

Hi All, I am trying to sftp, get a file from remote server. Post this we need to check the remote server file size or checksum value of the remote server file and compare it with the file size in the current server. But I am facing issue to get the remote server file size. Could you please... (2 Replies)
Discussion started by: abhi_123
2 Replies
SYSINST(8)						    BSD System Manager's Manual 						SYSINST(8)

NAME
sysinst -- install or upgrade a NetBSD system SYNOPSIS
sysinst [-D] [-f deffile] [-r releasename] DESCRIPTION
sysinst is a menu-based program that may be used to install or upgrade a NetBSD system. It is usually invoked automatically when the system is booted from appropriate installation media. sysinst is usually not present on a NetBSD system that has been fully installed. OPTIONS
-D Switch on debugging. -r releasename Set the releasename if it is different to the one compiled. Currently unused. -f deffile Set a file for definitions other than the defaults. See DEFINITION FILE for its format. DEFINITION FILE
The definition file is used to set several other names and directories to search for. You can specify any of the options in the file. They are stored as: option = value pairs. In this description, REL and MACH are the release and architecture respectively, determined by the image sysinst is used on. option name default value description release REL Release name (also set by -r releasename). machine MACH Machine architecture xfer dir /usr/INSTALL Transfer dir ext dir Extract dir (will usually be set later on) ftp host ftp.NetBSD.org ftp host for fetching files ftp dir pub/NetBSD/NetBSD-REL ftp directory for fetching files ftp prefix /MACH/binary/sets directory to look for sets. Note that this is used for all kinds of fetching (CDs, local FS, ...), not only ftp. ftp user ftp ftp user for connecting ftp pass - ftp password ftp proxy - ftp proxy nfs host - nfs host for fetching via nfs nfs dir /bsd/release nfs directory for fetching files cd dev cd0a name of the CD device for fetching files fd dev /dev/fd0a name of floppy for fetching files local dev - Other device to be mounted for fetching files local fs ffs FS-type for local dev local dir release Directory to look for in the mounted local fs targetroot mount /targetroot Directory to mount target root dir to dist postfix .tgz Suffix of set files to be extracted diskname mydisk disktab(5) diskname to use for target disk SEE ALSO
release(7), afterboot(8), boot(8), diskless(8) <machine>/INSTALL.* files on CD-ROM installation media .../NetBSD-<rel>/<machine>/INSTALL.* files in NetBSD releases or snapshots. HISTORY
A sysinst command appeared in NetBSD 1.3. BSD
September 17, 2011 BSD
All times are GMT -4. The time now is 09:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy