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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
xferlog2dlf
XFERLOG2DLF.IN(1) LogReport's Lire Documentation XFERLOG2DLF.IN(1)
NAME
xferlog2dlf - convert FTP logs in xferlog format to DLF format
SYNOPSIS
xferlog2dlf
DESCRIPTION
This script reads an FTP logfile in xferlog format. Most FTP servers use this format, among these are ProFTPD, WU-FTPD.
EXAMPLES
To process a log as produced in the xferlog format:
$ xferlog2dlf < ftp.log
xferlog2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report xferlog < /var/log/ftp.log
SEE ALSO
xferlog(5)
A list of FTP servers can be found at http://linuxmafia.com/pub/linux/security/ftp-daemons.
AUTHOR
Egon Willighagen <egonw@logreport.org>
VERSION
$Id: xferlog2dlf.in,v 1.11 2006/07/23 13:16:35 vanbaal Exp $
COPYRIGHT
Copyright (C) 2000-2001 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 XFERLOG2DLF.IN(1)