Sponsored Content
Full Discussion: ftp to multiple servers
Top Forums Shell Programming and Scripting ftp to multiple servers Post 11343 by kristy on Monday 3rd of December 2001 02:49:17 PM
Old 12-03-2001
aha

Thanks for the suggestion, PxT. I think I solved this another way by using the variable $1 for hostname and then writing another script that provides the hostnames like this:

#!/bin/ksh

cd DIR

./ftpscript host1
./ftpscript host2
./ftpscript host3
./ftpscript host4

-kristy
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rsh to change multiple ip in multiple servers?

good day. i jsut wanted to know what is the best script or the best way changing a lot of Ip's in all servers. Do you have any idea? im using awk to change IP,what if, you have lots of servers. You need to change it one by one? It will take time to change it manually. (2 Replies)
Discussion started by: kenshinhimura
2 Replies

2. Shell Programming and Scripting

FTP between two UNIX servers

Hi I have server A and server B. On server B the directory is called /tmp/hmp On server A I want to get the files on server B:/tmp/hmp via FTP. After I have got the files via FTP I have to delete them. In the script below I'm affraid of that I delete files before I get them by ftp. ... (1 Reply)
Discussion started by: hpedersen4
1 Replies

3. Shell Programming and Scripting

Script ftp multiple servers

Hi guys , i have 1 problem and no find what is the problem...:confused:, and .netrc is configured and correct permissions... REMOTE="/home/user" LISTADO=`cat /root/home/user/LISTADO.txt` MACHINE=$(echo $i|awk 'FS="|" {print $1}') for i in $LISTADO do ftp $MACHINE <<TER passive prompt... (2 Replies)
Discussion started by: Esquizo000
2 Replies

4. Shell Programming and Scripting

Automated FTP script using .netrc to multiple FTP servers

Hi all, I'm using the following script to automated ftp files to 1 ftp servers host=192.168.0.1 /usr/bin/ftp -vi >> $bkplog 2>&1 <<ftp open $host bin cd ${directory} put $files quit ftp and the .netrc file contain machine 192.168.0.1 login abc... (4 Replies)
Discussion started by: varu0612
4 Replies

5. UNIX for Advanced & Expert Users

Help Me - How to grep in multiple servers

Hi All, I need help , Regarding the keyword search in multiple servers at a time . we are desiging a search website . we have a multiple servers and each of the server have 3 instances having Unix compressed files.Our requirement was we need to search the particular key word for eg. we need to... (7 Replies)
Discussion started by: prasad00124
7 Replies

6. Shell Programming and Scripting

FTP files modified after a particular date between servers

Hi all, i need to write a shell script to transfer a file modified after a particular date from one server to another. I searched for the related posts in this forum and got hints and snippets for it. i tried the below code ftp serverA user uname pwd lcd to_dir cd from_dir files=$(find... (7 Replies)
Discussion started by: mick_000
7 Replies

7. Red Hat

RHEL 6 plain telnet & ftp servers

I am being pushed from AIX onto RHEL 6 and after our first 'chuck it on' install, I have a problem. Where is the old (okay insecure) telnet & ftp server? I know that they are probably regarded as archaic now, but the source servers do not have the SSH tools, so I've got to somehow transfer the... (4 Replies)
Discussion started by: rbatte1
4 Replies

8. IP Networking

Ftp connectivity between two UNIX servers

Hi All I am having issues using ftp between a solaris 10 server to a HP-UX 11.31 server, but from the solaris server to the hp-ux I am able to ping. This is what I have done so far: in the solaris server: root@MPCRS01 # svcs -a | grep ftp online Jul_26 svc:/network/ftp:default... (12 Replies)
Discussion started by: fretagi
12 Replies

9. UNIX for Beginners Questions & Answers

ssh multiple servers

Hi folks. I'm pretty new to unix, while I'm learning a lot I'm finding bash scripting quite confusing. Im sure it's not really, my head just hasn't clicked with it. Anyway, I need a script to loop the ip addresses stored in a file and run a "pgrep <process>" and return the pid or some... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies

10. UNIX for Beginners Questions & Answers

How to apply the update statement in multiple servers on multiple dbs at a time .?

Hi , Can any please help the below requirement on all multiple servers and multiple dbs. update configuration set value='yes' ;1) the above statement apply on 31 Databases at a time on different Ip address eg : 10.104.1.12 (unix ip address ) the above ip box contains 4 db's eg : db... (2 Replies)
Discussion started by: venkat918
2 Replies
ethers(4)						     Kernel Interfaces Manual							 ethers(4)

NAME
ethers - Database that maps Ethernet addresses to hostnames DESCRIPTION
The /etc/ethers file is used in conjunction with the reverse address resolution protocol daemon (rarpd) to map Ethernet addresses to host- names. It contains information about the known (48-bit) Ethernet addresses of hosts on the Internet. For each host on an Ethernet, a single line should be present in the file with the following information: Ethernet-address official-host-name Items are separated by one or more spaces or tabs. A number sign (#) indicates the beginning of a comment that extends to the end of line. The standard form for Ethernet addresses is: x:x:x:x:x:x The x is a hexadecimal number between 0 and ff, representing 1 byte. The address bytes are always in network order. Hostnames can contain any printable character other than a space, tab, newline, or number sign (#). Hostnames in the /etc/ethers file should correspond to the hostnames in the /etc/hosts file or to those provided by the name service. EXAMPLES
The following is a sample ethers file: 08:00:20:01:e5:1c host1 # Comments go here 08:00:20:01:d0:4c host2 # Comments go here 08:00:20:01:e0:1d host3 # Comments go here 08:00:20:00:c2:4e host4 # Comments go here RELATED INFORMATION
Commands: rarpd(8) Files: hosts(4), packetfilter(7) Routines: ethers(3) delim off ethers(4)
All times are GMT -4. The time now is 09:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy