Sponsored Content
Top Forums Shell Programming and Scripting Connecting to multiple unix server from unix server using shell script Post 302374563 by chakrapani on Wednesday 25th of November 2009 01:30:37 AM
Old 11-25-2009
I modified the code a little. Please make required changes before you run on your server.
Code:
#!/bin/sh
 
######## I'm in currently in server A########
TODAY=$(date '+%Y%m%d')
for serverindex in serverB serverC serverD serverE serverF serverG ;  do
  scp -r /root/myDoc/* $serverindex :~/$file.$TODAY 2>/dev/null 
  # Better check $? exit code to verify if the file copy is successful ..
  echo "$file : is copied to server >> $serverindex << as filename: $file.$TODAY .. hopefully .."   
done

exit 0

man scp

-r Recursively copy entire directories.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

connecting UNIX/Linux to NTP server

Hello i want to connect my solaris & Linux boxes to ntp server i used the command /usr/sbin/ntpdate -s -b -p 8 -u <NTP-IP> and added the NTP server as server in /etc/ntp.conf please help in completing the process and verifying it (1 Reply)
Discussion started by: learn82
1 Replies

2. Shell Programming and Scripting

Connecting to remote unix server using java?

I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks. (1 Reply)
Discussion started by: developncode
1 Replies

3. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. Thanks in advance. Phatan:) (2 Replies)
Discussion started by: phatan
2 Replies

4. Shell Programming and Scripting

How to connect unix server to unix server through shell scripts

Hi, I would like to connect UNIX server to UNIX server through shell scripts and i have some concepts . But i am totally confused how to connect UNIX server to UNIX server throuth running a script. It will be greatful to me if any buddy will help me. with simple example please. Thanks in... (2 Replies)
Discussion started by: phatan
2 Replies

5. UNIX for Dummies Questions & Answers

Connecting to UNIX server

Hi, My knowledge bucket of UNIX is almost empty. I have developed an application in EXCEL which can create XML files (Metadata) from Binaries. These binaries are stored in UNIX server on regular intervals. Currently I am transferring all binaries(GBs of files) to WINDOWS using WINSCP and... (2 Replies)
Discussion started by: bobs
2 Replies

6. UNIX and Linux Applications

Error while connecting to MySQl Server 5.1.34 on UNIX platform.

Hi, I have MySQL 5.1.34 installed on Solaris and Linux machine. MySQl installed Solaris Machine - A.A.A.A Remote Machine - B.B.B.B I have user in mysql.user as below: | user | password | host |... (2 Replies)
Discussion started by: amit_27
2 Replies

7. UNIX for Dummies Questions & Answers

Connecting to Unix server through Oracle

Hi, I need some help regarding oracle with unix script Actually i have a shell script and i want that it gets triggered through a oracle Db.I dont have any idea how is it done, even whether it is possible....pls help.....!!!! (3 Replies)
Discussion started by: fidelis
3 Replies

8. Shell Programming and Scripting

Unix shell script to Copy files from one Windows server to another Windows server.

Can anybody please help me on how to code for the below requirement: I need to write a shell script (on different unix server) to copy files from multiple folders (ex. BRN-000001) from one windows server (\\boldls-mwe-dev4)to a different windows server(\\rrwin-ewhd04.ecomad.int). This shell... (4 Replies)
Discussion started by: SravsJaya
4 Replies

9. Shell Programming and Scripting

FTP from windows to unix server using unix shell script

Hi, Is it possible to ftp a huge zip file from windows to unix server using unix shell scripting? If so what command i need to use. thanks in advance. (1 Reply)
Discussion started by: Shri123
1 Replies

10. Shell Programming and Scripting

Connecting to Windows server from UNIX through script

I am trying to connect to a Windows server say 10.1.1.10. This servers has a folder named RAJ in which there are multiple .zip files. All these zip files contain a text file called XYZ.txt. Now i have to merge the content of these XYZ.txt files from each of the .zip file and create a new text... (1 Reply)
Discussion started by: swapniljadav
1 Replies
ESD(1)							     Enlightened Sound Daemon							    ESD(1)

NAME
esd - The Enlightened Sound Daemon DESCRIPTION
Starts up EsounD, which provides a sound mixing server. USAGE
esd [options] -d DEVICE force esd to use sound device DEVICE -b run server in 8 bit sound mode -r RATE run server at sample rate of RATE -as SECS free audio device after SECS of inactivity (-1 to disable) -unix use unix domain sockets instead of tcp/ip -tcp use tcp/ip sockets instead of unix domain -public make tcp/ip access public (other than localhost) -promiscuous start unlocked and owned (disable authenticaton) NOT RECOMMENDED -terminate terminate esd daemon after last client exits -noterminate do not terminate esd daemon after last client exits -nobeeps disable startup beeps -beeps enable startup beeps -trust start esd even if use of /tmp/.esd can be insecure -port PORT listen for connections at PORT (only for tcp/ip) -bind ADDRESS binds to ADDRESS (only for tcp/ip) -v --version print version information Possible devices are: /dev/dsp, /dev/dsp2, etc. FILES
/etc/esd.conf daemon configuration file SEE ALSO
esdcat(1), esddsp(1), esdloop(1), esdplay(1), esdsample(1), esd-config(1), esdctl(1), esdfilt(1), esdmon(1), esdrec(1) 3rd Berkeley Distribution EsounD 0.2.41 ESD(1)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy