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 ??
Code:
# Check if the file is still being written at the Server
/bin/fuser -u ${FILE} > ${LOCAL_PATH}/process_file 2>/dev/null
PROCESS_ID=`cat ${LOCAL_PATH}/process_file`
if [ ${PROCESS_ID} ] ; then
echo "${FILE} file is still being written. Will attempt to sFTP at next iteration" >> ${LOGFILE}
echo "${FILE} file is still being written. Will attempt to sFTP at next iteration"
echo
echo "------------------------" >> ${LOGFILE}
echo
else
echo "Create batchfile for the file, ${FILE}" >> ${LOGFILE}
echo "Create batchfile for the file, ${FILE}"
. ${SCRIPT_PATH}/Create_batchfile.sh
echo
Last edited by Don Cragun; 03-10-2016 at 03:18 PM..
Reason: Remove the COLOR tags from the code.
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)
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 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)
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,
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)
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)
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)
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)
Discussion started by: vx04
2 Replies
LEARN ABOUT DEBIAN
transmission-gtk
TRANSMISSION-GTK(1) BSD General Commands Manual TRANSMISSION-GTK(1)NAME
transmission-gtk -- a bittorrent client
SYNOPSIS
transmission-gtk -?
transmission-gtk [-pqm] [torrent-file ...]
DESCRIPTION
transmission-gtk is a fast and easy BitTorrent client.
BitTorrent is a peer-to-peer file transfer protocol which uses a metainfo file (usually with the .torrent file extension) and a central
tracker to distribute file data amongst a group of peers. For more information on the BitTorrent protocol see http://www.bittorrent.org/
OPTIONS
-? --help
Show help options
-p --paused
Start with all torrents paused
-m --minimized
Start minimized in notification area
-g, --config-dir directory
Where to look for configuration files. This can be used to swap between using the cli, daemon, gtk, and qt clients. See
http://trac.transmissionbt.com/wiki/ConfigFiles for more information.
Multiple .torrent files may be added at startup by appending them on the command line. If transmission-gtk is already running, the torrents
will be added to the running instance.
ENVIRONMENT
TRANSMISSION_HOME
Sets the default config-dir.
http_proxy libcurl uses this environment variable when performing tracker announces. If set, this overrides the GNOME proxy preferences.
FILES
~/.config/transmission
The config-dir used when neither [TRANSMISSION_HOME] nor [-g] is specified.
AUTHORS
transmission-gtk was written by Jordan Lee, Josh Elsasser, Eric Petit, and Mitchell Livingston.
SEE ALSO transmission-create(1), transmission-daemon(1), transmission-edit(1), transmission-gtk(1), transmission-qt(1), transmission-remote(1),
transmission-show(1)
http://www.transmissionbt.com/
BSD May 20, 2008 BSD