08-26-2005
How to FTP all newly created but the current open file?
An application running on HP-UX constantly generates new text log files ( I think using logpipe ). Any new file created requires to be ftp'ed to an offline server, however I want to make sure that the current file being written should not be transferred.
For examples consider the following files on HP-UX server that are transferred to an offline server for processing.
file1 - old already transferred at T1
file2 - old already transferred at T1
file3 - old already transferred at T1
file4 - new needs to be transferred at T2
file5 - new needs to be transferred at T2
file6 - new needs to be transferred at T2
file7 - new needs to be transferred at T2
file8 - new needs to be transferred at T2
file9 - file currently open by application for writing ( don't include this file for transfer at T2, this will be transferred at T3 when the file is close)
Also the script that ftp's the files run on the remote offline server. Is there a command that can be run from remote server that will help identify all the new files but prevent the current open file from getting transferred?
thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have to create a new log file everyday and append it with content based on some keywords found in another log file.
Here is what I have tried so far...
grep Error /parentfolder/someLogFile.log >> /parentfolder
/Archive/"testlogfile_error_`date '+%d%m%y'`.txt"
grep error... (6 Replies)
Discussion started by: supreet
6 Replies
2. Shell Programming and Scripting
Hi,
I need to create new directory by increasing the number by 1 of extracted lastly created directory.
e.g.
Log\out_log_1\
Log\out_log_2\
Log\out_log_3\
become
Log\out_log_1\
Log\out_log_2\
Log\out_log_3\
Log\out_log_4\
Can anyone help how to do it in c-shell... (3 Replies)
Discussion started by: Andre_2008
3 Replies
3. UNIX for Advanced & Expert Users
Hi all,
In linux how to create a directory with specified size, so that it can be used only up to the mentioned size.
Actually my question is, whether we can do directory quota in linux.
mounting the directory in a partiton will do that, but do we have any other option... (1 Reply)
Discussion started by: anishkumarv
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I just forgot what command we can use to open a file, and then see its updates, I remember that there is an option -f ,but with what command :wall:
Tx
Trent (1 Reply)
Discussion started by: trento17
1 Replies
5. Solaris
hello,
i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies
6. Shell Programming and Scripting
hello everyone,
I am new to perl script and trying to develop a script as follows.
I am trying to Create an array for storing all file names. I am trying to copy $libs into "scratch". however i am unable to do so. Please suggest..
#!/usr/bin/perl
use File::Copy;
#use... (5 Replies)
Discussion started by: Rashid Khan
5 Replies
7. Hardware
Hi ,
I have created one new lun in my SAN storage and make it visible to my HP servers , but the fdisk -l output is somehow confusing. Do not know what to do next ----------
fdisk -l /dev/sdo1
Disk /dev/sdo1 (Sun disk label): 64 heads, 32 sectors, 10238 cylinders
Units =... (7 Replies)
Discussion started by: mishra.sankar
7 Replies
8. Shell Programming and Scripting
Hi All,
I'm trying to find a file which is created on current day.... I searched in unix.com and i found, below command.
find /land/ -mtime -1 -type f -print | grep "FF_Member_STG.dat"
The command checks if the file with name "FF_Member_STG.dat" is created today then exit else proceed.
... (3 Replies)
Discussion started by: ace_friends22
3 Replies
9. AIX
AIX 7.1
New to WPAR, hopefully just missing something simple here.
Creating the WPAR like this.....
(The box where the WPAR is hosted does have an iscsi protocol device)
mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies
10. UNIX for Beginners Questions & Answers
Hello guys
thanks for this helpful forum.
I'm new to scripting and doing a little script that dump a sql database with some extra files from a VM of the company I'm in, and create a tar archive to be saved on our serve.
How can I have the tarball to be created with the files generated in the... (2 Replies)
Discussion started by: dquake
2 Replies
LEARN ABOUT DEBIAN
netread
netread(1) General Commands Manual netread(1)
NAME
netread - read data transported over network using netwrite
SYNOPSIS
netread [udp] [-f host ] [-c] [-C algorithm ] [-o file ] [-s] [-b] [-h <n> ] [-H] <n> ] [-q] [-v] [-vv] [-V] [-vV]
netread is part of the netrw package. It is a simple (but powerful) tool for transporting data over the internet, in conjunction with
netwrite(1)
DESCRIPTION
The main purpose of netrw is to simplify and speed up file transfers to hosts without an FTP server. It can also be used for uploading data
to some other user. It is something like one-way netcat (nc) with some nice features concerning data transfers. Netrw can compute and check
message digest (MD5, SHA-1, and some others) of all the data being transferred, it can also print information on progress and average
speed. At the end it sums up the transfer.
OPTIONS
udp Changes the default TCP protocol can be changed to UDP.
-f host
Works in the firewall mode; connection is initiated by netread.
-c This option is ignored. Transmission checksum is activated by default.
-C algorithm
Uses the specified algorithm for checksum. This option also implies -c
. Supported algorithms (the first is default): sha1 md5 rmd160 none
-o <file>
Writes data to file instead of stdout.
-s In case -o option is specified, open the file for synchronous I/O. Otherwise, this option has no effect.
-b print speed in b/s instead of B/s
-h <n> Prints `#' after each n KiB transferred (def. 10485.76).
-H <n> Prints `#' after each n MiB transferred (def. 10.24).
-q Be quiet.
-v Be verbose.
-vv Be very verbose.
-V Show version.
-vV Show verbose version.
RETURN VALUES
0 no errors.
1 some error occured.
2 checksum validation failed.
SEE ALSO
netwrite(1), /usr/share/doc/netrw/README
AUTHOR
netread was written by Jiri Denemark <jirka@ics.muni.cz>. For more information, visit http://www.fi.muni.cz/~xdenemar/netrw
This manual page was written by Kumar Appaiah <akumar@ee.iitm.ac.in>, for the Debian project (but may be used by others).
2007-10-14 netread(1)