09-07-2008
writing script in UNIX for copying files in two server
can anyone help me in writing script in UNIX for copying files in two server from the third server after checking the files in the third server and if there is anything new in the third server automatically it should be added to the rest of the two servers and if same file is existing in the two servers , the existing one should be renamed to some other file and latest file should be copied from the third server.
regds
rekha
Last edited by REKHA09; 09-07-2008 at 12:15 PM..
Reason: as title was not correct
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Is there a simple way to copy data from one server to a different server?
Seems that if 2 servers are on the same network, there should be a simple way to copy between the two.
Not just one file. I need to copy a whole directory with subdirectories from one server to a different one.
I... (9 Replies)
Discussion started by: Docboyeee
9 Replies
2. Shell Programming and Scripting
I would like to find whether a file exists in the UNIX machine. That i can check using
if ;then
echo "exists"
echo " `cat $file` "
else
echo "invalid file"
fi.
and i can find out using :
find / -name "filename" . But it i have wanted to search in all directories. How to get... (3 Replies)
Discussion started by: rparsa001
3 Replies
3. Shell Programming and Scripting
Hi Scripting experts,
I am new to the unix scripting. Please help me out for solving the condition given below
I am trying to develop a script for Copying files which are getting generated in server A to server B using scp. In serverA files are generating as for eg abc1.txt, abc2.txt,... (5 Replies)
Discussion started by: rohithji
5 Replies
4. Shell Programming and Scripting
Hi,
I have generated a Public/Private Key Pair in Solaris Unix (source) server and deployed the Public key in Windows 2003(target) server .ssh directory of user profile.
When i try to connect(ssh, scp, sftp) from Unix, i'm getting below error message.
Sun_SSH_1.1, SSH protocols 1.5/2.0,... (0 Replies)
Discussion started by: ajaykumarb
0 Replies
5. Shell Programming and Scripting
Hi Unix Gurus,
I have a doubt reg file transfer. I have used the below script to connect to another server and find files having modified for the last 24 hours and have to move the file to another server.
While i tried i am getting authentication failed, destination path not found issue.
... (2 Replies)
Discussion started by: incepted
2 Replies
6. Shell Programming and Scripting
Hi,
I just need a shell script that copies a list of files from a directory in a remote server to my current directory at local server
the remote server may contain the following list:
/root/pradeep/myfiles/default
/root/pradeep/myfiles/dir1
/root/pradeep/myfiles/dir2
...... (1 Reply)
Discussion started by: paddu
1 Replies
7. UNIX for Dummies Questions & Answers
How do i copy files from Unix Server to my Local Desktop..
ANy ideas..please suggest....V Urgent. (1 Reply)
Discussion started by: win4luv
1 Replies
8. UNIX for Dummies Questions & Answers
How to copy files from Unix server to Local (6 Replies)
Discussion started by: win4luv
6 Replies
9. UNIX for Dummies Questions & Answers
Hi guys
Let me start by saying that I'm a newbie, so feel free to point me to any good reading material. What I wanted to do is copy some specific files from windows to unix. Let me elaborate my view.
Let's say I have some directory tree in unix, CHO-species/C2H1O1/ VAS-S005-001-Ru444/OPT-0/,... (16 Replies)
Discussion started by: saleheen
16 Replies
10. Shell Programming and Scripting
Hi Team,
I had a requirement to write a shell script which automatically transfer the files from unix server to windows server. I can able to unix to unix using Scp command. I am not sure how to do unix to windows.
I am very new on this concept.
Could you please help me or guide in... (4 Replies)
Discussion started by: gvkumar25
4 Replies
LEARN ABOUT OPENDARWIN
xfsinfo
XFSINFO(1) General Commands Manual XFSINFO(1)
NAME
xfsinfo - X font server information utility
SYNOPSIS
xfsinfo [-server servername]
DESCRIPTION
Xfsinfo is a utility for displaying information about an X font server. It is used to examine the capabilities of a server, the predefined
values for various parameters used in communicating between clients and the server, and the font catalogues and alternate servers that are
available.
OPTIONS
-server servername
This option specifies the X font server to contact. servername must be specified in one of the formats defined in the Font Server
Names section of X(7). If not specified, the server name in the FONTSERVER environment variable is used.
HISTORY
Xfsinfo was originally called fsinfo. It was renamed to avoid a clash with the fsinfo utility from the Berkeley automounter amd.
EXAMPLE
The following shows a sample produced by xfsinfo.
example% xfsinfo -server hansen:7100
name of server: hansen:7100
version number: 1
vendor string: Font Server Prototype
vendor release number: 17
maximum request size: 16384 longwords (65536 bytes)
number of catalogues: 1
all
Number of alternate servers: 2
#0 hansen:7101
#1 hansen:7102
number of extensions: 0
ENVIRONMENT
FONTSERVER
To get the default fontserver. The server name must be specified in one of the formats defined in the Font Server Names section of
X(7).
SEE ALSO
xfs(1), fslsfonts(1), X(7).
AUTHOR
Dave Lemke, Network Computing Devices, Inc
X Version 11 xfsinfo 1.0.3 XFSINFO(1)