I know that Unix utility ( fuser ) is used to detect "transmission" of files from Source system to "current Linux Server".
I have scheduled this Unix script to work every 30th minutes of the hour and whenever files transmission starts at that very moment.
And, the file is picked up for transmission even though the file has not fully arrived at the "current Linux server".
This is the problem .. Kindly help ??
Last edited by Don Cragun; 03-10-2016 at 03:18 PM..
Reason: Remove the COLOR tags from the code.
Source system is a Mainframe Server and it sends files to "current Linux server". Unfortunately, we will not be able to use your suggestions here. They use CDGW software to transmit files to "current server".
And, I am using SFTP utility to further pick up the files from "current server" and send it again to "destination Linux Server". Kindly suggest any work-around or better logic in using "fuser" utility ??
Connect direct software has built in functionality to prevent just the problem you are having.
Just modify the rule to make a mv to original name after a successful transfer, don't reinvent the wheel.
If you really want to, search the forums for fuser,lsof and pfiles examples who to find out if file is being used.
As I mentioned before, CD software is used to transmit files from "Source Server" to "current server". We don't have CDGW software on the "current server" where I am running this SFTP script to detect complete arrival of files using "fuser" utility.
Here is the file transmission path:
====================
"Source Sever" ---CDGW----> "Current Server" ( I used SFTP shell script ) ------> "Destination Server"
Kindly suggest any better ways to use this "fuser" utility ?
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output.
Is it possible to transfer files from Windows server to unix server through any shell script?
If so can you please help me with the details.
Thanks in... (8 Replies)
I have created a lun on Storage and connected it to server using fiber channel.
LUN is presented on new Server .
How do i check and mount this newly created LUN? (1 Reply)
Hi,
I have two unix servers i need to move files from one server to another.
For example:
i have some files in Server1 and i want to run script in server2 to move files from server1.
Any suggestion
Thanks in advance (1 Reply)
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Hi All,
Let me know how can i find and delete files from one unix server to another unix server which are 'N' days older.
Please note that I need to delete files on remote unix server.So, probably i will need to use sftp, but question is how can i identify files and folders which are 'N'... (2 Replies)
Hello!
I searched forum for similar topic, with no luck, if you know one, delete this topic, and send me private message with link please.
Little background:
I have a lot of clients and one serwer. Client can make multiple connections on different ports and ips, but only one can be acctive... (2 Replies)
Hi,
is it possible to write files via write() to a socket and read it on the other side via read(), without going through buffers? Iif not via write() and read() are there other possibilities?
thanks
darkspace (5 Replies)