Sponsored Content
Top Forums Shell Programming and Scripting Get the count of files transmitted Post 302370555 by rdcwayx on Wednesday 11th of November 2009 08:15:34 PM
Old 11-11-2009
Something like this (not the real code)
Code:
for i in `ls`
do
  #Your FTP parts
  j++
  if ["$j" >= "100" ]; then 
      exit
  fi
done


Last edited by rdcwayx; 11-11-2009 at 09:29 PM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How To Find File Is Transmitting Or File Has Transmitted

Hi Q. suppose operator is doing transmitting files (by using FTP)from one login to another in to one particuler directory.let filename is scfd_001.unl .when ever operator starts FTP this name will created in that particular directory.but problem is hoe to find scfd_001.unl file is already... (1 Reply)
Discussion started by: mallikarjuna
1 Replies

2. Shell Programming and Scripting

count of files

How to count the number of files in a directory. Thanks Mahalakshmi.A (13 Replies)
Discussion started by: mahalakshmi
13 Replies

3. Shell Programming and Scripting

Count todays created files and old files

Hello experts, I used following approach to get listing of all files of remote server. Now I have remote server file information on same server. I am getting listing in the output.txt I want to count today's created files and old files. I want to compare the numbers... (11 Replies)
Discussion started by: dipeshvshah
11 Replies

4. UNIX for Dummies Questions & Answers

Count number of files in directory excluding existing files

Hi, Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time.. Thanks (3 Replies)
Discussion started by: ammu
3 Replies

5. Shell Programming and Scripting

Count Files

I was wondering if anyone could help me with this problem: Write a script called countFiles that takes two arguments, the initial directory and the number of levels and returns the count of all files (including directories) in the directories and subdirectories up to the number of levels. ... (4 Replies)
Discussion started by: clammy
4 Replies

6. UNIX for Dummies Questions & Answers

SSH: What data is actually being transmitted?

Sorry, I couldn't think of how to word my question in the title field, let me try to explain: If I am on "computer1" on a school network, and I ssh using Terminal to a remote server A, then I perform an rsync operation between server A and server B (home server), what data is being sent to my... (3 Replies)
Discussion started by: WIOP33
3 Replies

7. AIX

Adding CR to ascii data file generated on AIX platform and will be transmitted to Windows OS

I desperately need help converting ascii data file generated on AIX platform that contains dollar sign ($) at the end of each line in the data file as shown below. ME570^0128237^HG278999^20140805:21:00:00^BEENZ001^$ This is the AWK command for adding CR to the new line. awk... (1 Reply)
Discussion started by: cumeh1624
1 Replies

8. Shell Programming and Scripting

Error files count while coping files from source to destination locaton as well count success full

hi All, Any one answer my requirement. I have source location src_dir="/home/oracle/arun/IRMS-CM" My Target location dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct" my source text files check with below example.text file content $fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies

9. Shell Programming and Scripting

Shell script for field wise record count for different Files .csv files

Hi, Very good wishes to all! Please help to provide the shell script for generating the record counts in filed wise from the .csv file My question: Source file: Field1 Field2 Field3 abc 12f sLm 1234 hjd 12d Hyd 34 Chn My target file should generate the .csv file with the... (14 Replies)
Discussion started by: Kirands
14 Replies
tccontrol(3C)															     tccontrol(3C)

NAME
tcsendbreak(), tcdrain(), tcflush(), tcflow() - tty line control functions SYNOPSIS
DESCRIPTION
If the terminal is using asynchronous serial data transmission, causes transmission of a continuous stream of zero-valued bits for a spe- cific duration. If duration is zero, it causes transmission of zero-valued bits for at least 0.25 seconds, but not more than 0.5 seconds. If duration is not zero, zero-valued bits are not transmitted. waits until all output written to fildes has been transmitted. discards data written to fildes but not transmitted, or data received but not read, depending on the value of queue_selector: o If queue_selector is data received but not read is flushed. o If queue_selector is data written but not transmitted is flushed. o If queue_selector is both data received but not read, and data written but not transmitted is flushed. suspends transmission of data to fildes or reception of data from fildes, depending on the value of action: o If action is output is suspended. o If action is suspended output is restarted. o If action is a STOP character is transmitted which is intended to cause the terminal to stop transmitting data to the system. o If action is a START character is transmitted which is intended to cause the terminal to start transmitting data to the system. RETURN VALUE
Upon successful completion, a value of zero is returned. Otherwise, a value of -1 is returned and is set to indicate the error. ERRORS
These functions fail if one or more of the following is true: [EBADF] fildes is not a valid file descriptor. [EINTR] A signal was received during [EINVAL] The queue_selector or the action argument is not a proper value. [ENOTTY] The file associated with fildes is not a terminal. SEE ALSO
tcattribute(3C), tccontrol(3C), thread_safety(5), termio(7). STANDARDS CONFORMANCE
tccontrol(3C)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy