Does the directory already exist on the remote box?
Can you use ssh to connect or do you have to use ftp?
This is the best and basically only choice, which preserves file permissions and ownership, command from the source machine:
There is no ftp equivalent. And if you cannot log onto the remote box you will have to manually create the directory using the ftp command mkdir, then copy each file over:
done
Last edited by jim mcnamara; 12-13-2013 at 07:44 AM..
This User Gave Thanks to jim mcnamara For This Post:
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Hi,
The Setup is like this. I'm connecting to Unix machine from my local machine. After connecting to Unix M/c, i need to connect FTP server. Am successful in connecting to FTP server, but am not able to download the file from the ftp server to my local machine. I have different user id's and... (1 Reply)
Hi All,
please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server.
Where as i know the IP for the Unix server.
i could do this process by using ftp command.
pls help me to write as Shell script.
Thanks in advance for all of your answers.:b::b: (3 Replies)
Hi,
I need to copy few files from remote server to local server.
I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed.
... (5 Replies)
Hi Friends,
I have this script for ftping files from AIX server to local windows xp.
#!/bin/sh
HOST='localsystem.net'
USER='myid_onlocal'
PASSWD='mypwd_onlocal'
FILE='file.txt' ##This is a file on server(AIX)
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE... (1 Reply)
Validating the size of file transferred from ftp server to the local system.
File type: Text file/Flat file
Source System: Windows / Unix Systems
Target System is always: Unix
Mode of Transfer : ASCII
We have generic ftp shell script that transfers the files from different ftp servers. ... (2 Replies)
Hi All,
can anybody explain me how to ftp files from local system to unix server using Shell scripting without using any softwares.
i have developed some code but its not wrking.
lclpath=/dba58/d039/ftppubd/ajay
echo $lclpath
cd $lclpath
user='rajesh'
pswd='rajesh'
host="3.209.136.253"... (5 Replies)
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Hi,
I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script.
Can anyone help me in automating the script such that it... (3 Replies)
Hi,
I want to delete a file on the local server, while connected to remote server through FTP.
I am using the below code for this
$FTP_CMD -v -n $HOST <<*! >> $LOGFILE 2>&1
user $USER $PASSWORD
cd $DIR
... (11 Replies)
Discussion started by: jhilmil
11 Replies
LEARN ABOUT ULTRIX
bindsetup
bindsetup(8) System Manager's Manual bindsetup(8)Name
bindsetup - set up the Berkeley Internet Name Domain (BIND)/Hesiod service
Syntax
/usr/etc/bindsetup [ -c [ -d directory ] -b binddomain name1,IP1 name2,IP2 ... ]
Description
The command sets up the Berkeley Internet Name Domain (BIND)/Hesiod service on your system and places and resolution under BIND/Hesiod con-
trol. You can use this command to set up your system as a primary, secondary, slave, or caching server, or as a client.
In order to run BIND/Hesiod, your system's host name must include the BIND domain name. The BIND host name consists of the local host name
plus the BIND domain name, separated by periods. For example, the BIND host name for a system whose local host name is and whose BIND
domain name is is
The command edits the and files and changes the local host name to the BIND host name, if it is not there already.
If the command changes your system's host name, you should reboot the system to be sure that the change is propagated throughout the sys-
tem.
Before you run , your system must be established on a local area network. In addition, you must know the BIND domain name for your local
area network, and whether your system will be a primary, secondary, slave, or caching server, or a client.
The command asks if you want to run a Kerberos authentication server. You must already have set up Kerberos to do do. For more informa-
tion, see the Guide to Kerberos.
You should run the command as superuser and with the system in multiuser mode.
If you use the option with the respective arguments, the command sets up your system as a BIND/Hesiod client non-interactively.
If you run the command with no arguments, a menu is displayed giving you a choice of responses. You are then prompted for further informa-
tion. Before exits, it lists the files that have been updated.
Once BIND/Hesiod is installed on a machine, it cannot be used until the file is modified to contain BIND entries on the desired database
lines. The command reminds a user to run or edit the file manually.
Options-c Sets up your system as a BIND/Hesiod client according to the following arguments you supply on the command line:
-d directory
This option and argument are required if you are setting up a diskless client from the diskless server. The directory is the
full path name of the root directory for your system (a diskless client) on the diskless server. The following is an example
of a root directory for a diskless client named
/dlclient0/orange.root
-b binddomain
This is the name of the BIND domain on which your system will be a BIND client. For example, is a sample BIND domain name.
name,IP This is the host name and the IP address of the BIND server on the domain, for example You can specify one or more BIND server
by listing more name,IP arguments, each separated by a space.
Files
List of locally maintained host names and IP addresses
Startup commands pertinent to a specific system
Database name with the selected naming services
Hesiod configuration file
List of Kerberos servers
Default BIND Files:
BIND server data file directory
BIND server boot file
BIND server cache file
BIND server local host reverse address host file
BIND primary server hosts file
BIND primary server reverse address hosts file
BIND data file
See Alsonslookup(1), hesiod(3), hesiod.conf(5), svc.conf(5), svcsetup(8), named(8), krb.conf(5), resolv.conf(5)
Guide to the BIND/Hesiod Service
Guide to Kerberos
bindsetup(8)