Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Limit number of files transferred Post 303010480 by Janarthan on Tuesday 2nd of January 2018 07:40:24 AM
Old 01-02-2018
Limit number of files transferred

I've a folder in remote server and it has 50 files. I like to transfer these files by first 10 and next 10 files.

I'm using mget command to transfer the files. How to limit the file transfer limit to 10. instead of copying 50 files at a time.


Thanks
Janarthan
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

limit to number of files in a given directory

Everyone, We are on a unix AIX 4.3 platform and our application is written as such that all configuration files must reside in a specific directory. Currently there are over 10,000 files in this directory (and growing at about 300 per month). My question is is there a physical limit to the... (2 Replies)
Discussion started by: hedrict
2 Replies

2. Shell Programming and Scripting

How to know number files transferred

Hi, I am transferring files from our local server to remote server using FTP command in a shell script. I am using a the following code, FTPFILE="ercchk*.txt" mput $FTPFILE can any one help me out in calucalating the number of files transfered. help in this regard is highly... (9 Replies)
Discussion started by: azazalis
9 Replies

3. Shell Programming and Scripting

limit the number of jobs to run.

i just want to get the BackGround status and limit the number of jobs to run the at a time. can i able get the back ground exit status ? that i code below. can jobs -l limit the number of jobs to run ? total is this script looks fine ? cat run_job.ksh #!/usr/bin/ksh... (0 Replies)
Discussion started by: GrepMe
0 Replies

4. UNIX for Dummies Questions & Answers

Number of long limit

Hi Hi! I'm currently using AIX 5.2 and would like to know where can i find to see that there's a restriction on the number of login times a user can have. Example, I want give a 2 login per user but some one to give 3 login and some one have to give unlit login time (without logging off the... (2 Replies)
Discussion started by: herath
2 Replies

5. Solaris

How to limit number of Commands

Is there a way that I can limit number of commands that one user can run during period of time. For example Max 10 commands per senconds.:) (3 Replies)
Discussion started by: winger0608
3 Replies

6. UNIX for Dummies Questions & Answers

How files can be transferred from one system to another securely using Linux?

i need to know how files can be transfered from one system to another securely in linux. (9 Replies)
Discussion started by: bibing
9 Replies

7. UNIX Desktop Questions & Answers

limit number of sub-dirs searched for files

using: find . -type f -print|xargs -li "string", how do I limit the dated directories (2010-7-14, 2010-7-13,etc.) to just 2009 & 2010 years of directories to search. We go back to 2004 in our archives, way too many files. (3 Replies)
Discussion started by: MJThom713
3 Replies

8. UNIX for Dummies Questions & Answers

Limit Number of files

hi guys how can i limit number of files in a disk or partition ? or how can i make a limit to inode number for a disk or partition ? ext3 or ext4 file system (1 Reply)
Discussion started by: mhs
1 Replies

9. Solaris

How do files transferred via ftp or sftp gets thier permissions at destination?

We have umask defined under /etc/.login as 022. I have my user specific umask defined in /userhome/.login as 002. I understand ftp will not execute anything at destination, it simply transfers files. But it seem to be using 022 as umask for the files transferred. How does ftp knows what umask... (4 Replies)
Discussion started by: kchinnam
4 Replies

10. Shell Programming and Scripting

How to check whether files are transferred or not using ftp?

Hi, i want to execute a shell script which transfers files from one server to another using ftp in unix. How can i check whether the ftp is successful or not.(i.e files are transferred to destination server). because if i am checking the return code of ftp, it always shows 0 (denoting ftp is... (5 Replies)
Discussion started by: Little
5 Replies
tftp(1) 						      General Commands Manual							   tftp(1)

NAME
tftp - trivial file transfer program SYNOPSIS
val] val] [host [port]] DESCRIPTION
is the user interface to the Internet TFTP (Trivial File Transfer Protocol), that allows users to transfer files to and from a remote machine. The remote host can be specified on the command line, in which case uses host as the default host for future transfers (see the command below). Note now conforms to the RFCs: 2347, 2348, and 2349. Options supports the following new options: Set the block size option for data transfer, in octets. See command for more information. Set the use of transfer size option. See command for more information. Set the retransmission timeout option, in seconds. See command for more information. Commands Once is running, it issues the prompt and recognizes the following commands: Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain con- nections between transfers; thus, the command does not actually create a connection, but merely remembers what host is to be used for transfers. You do not have to use the command; the remote host can be specified as part of the or com- mands. Set the mode for transfers; transfer-mode can be one of or (default is Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the remote host if the host has already been specified, or a string of the form to specify both a host and filename at the same time. If the latter form is used, the hostname spec- ified becomes the default for future transfers. If the remote-directory form is used, the remote host is assumed to be a UNIX-like machine. To invoke the command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets Get a file or set of files from the specified sources. source can be in one of two forms: a filename on the remote host if the host has already been specified, or a string of the form to specify both a host and filename at the same time. If the latter form is used, the last hostname specified becomes the default for future transfers. To invoke the command with an IPv6 address, the IPv6 address must be enclosed in a pair of square brackets Exit Typing the end-of-file character also causes an exit. Toggle verbose mode. Toggle packet tracing. Show current status. Set the per-packet retransmission timeout, in seconds. Set the total transmission timeout, in seconds. Shorthand for "mode ascii" Shorthand for "mode binary" Set the block size for data transfer. The client and the server communicate to arrive upon a block size that is suitable for use on the network medium. The valid range is 8 to 65464 octets. The default value is 512 octets. Set the retransmission timeout, in seconds. The client and the server communicate to arrive upon a retransmission timeout value. The valid range is 1 to 255 seconds. The default value is 5 seconds. Toggles the use of transfer size. This option is implemented for binary mode transfers only. By default, this option is disabled. If this option is enabled, it allows the receiving side to deter- mine the size of the file being transferred. When the command is used in binary mode and the size of the file is greater than the free disk space, transfer will be aborted immediately. When the command is used in binary mode, the size of the file will be sent to the server. Print help information. WARNINGS
Since there is no user-login or validation within the TFTP protocol, the remote site probably has some sort of file-access restrictions in place. The exact methods are specific to each site and are therefore difficult to document here. AUTHOR
was developed by the University of California, Berkeley. SEE ALSO
tftpd(1M). tftp(1)
All times are GMT -4. The time now is 11:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy