11-30-2006
FTP script for sending a file from one unix directory to another unix server director
Hi,
My local server is :/usr/abcd/
Remote server is :/Usr/host/test/
I want to send files from local unix directory(All files starting with O_999) to
remote host unix directory.
Can any body give me the Unix Shell script to do this.
One more doubt: Shall we need to change the file permissions of local directory file before transporting it to remotehost directory.
Thanks in Advance,
Raja
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Automated Unix to Windows Active Directory FTP
I have done many automated FTP scripts using the following logic:
===============================
echo "Starting the FTP transfer..."
{ echo "
open 192.168.1.100
user username password
ascii
put... (1 Reply)
Discussion started by: Cbish68
1 Replies
2. Shell Programming and Scripting
Hi All,
I have a Sqlplus report which will create a file.
I need a FTP Script that will be executed inside the Sqlplus Report to FTP the report output file to unix server.
Thanks,
Previn (0 Replies)
Discussion started by: vprevin
0 Replies
3. Shell Programming and Scripting
Good afternoon!
I need to move a bunch of files from an FTP site to my server.
However mget *, dele * will not suffice as I cannot guarantee that new files are not uploaded between commands.
Roughly, this is what I would like to do:
(using a .netrc)
ftp somehost
bin
prompt
cd... (1 Reply)
Discussion started by: abirdd
1 Replies
4. Shell Programming and Scripting
I'm trying to write a Perl script where a file from a UNIX server box connects to a Windows server box and copies that file into the Window box.
The main problem I have right now is that whenever I try to connect to the Windows box, the connection is refused.
The error message that always pops... (2 Replies)
Discussion started by: kooshi
2 Replies
5. Shell Programming and Scripting
Hi, I am new to this subject.....Can someone please help me out with the script...
unix usernm "sdhftst"
unix pwd "chsd13"
windows usernm "dfghtst"
windows pwd "chsd13"
path..../xxx/xxxxx/xxxxxx/xxxxxxx
please can u get me a script...its only one file to get ftp.
Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
hi,
Im using the following code for FTP
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd
Below is the log when i run the above code
**********************************
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies
8. Shell Programming and Scripting
Dear All,
i am trying to get the file from windows location to unix location without using FTP and neither thru entering the user id and password. I have one unix form which is running on web application and user is entering the location and file name there now i know the file name and path. So i... (8 Replies)
Discussion started by: ripudaman.singh
8 Replies
9. Shell Programming and Scripting
Hello this is my first post in this forum , I dont want to be unhappy..
I am writing one script but facing difficulty to find the latest file with some new pattern
My requirement is
1. The file is coming like "ABCD-23220140303" at FTP server once in a week.
2. script will run on daily... (3 Replies)
Discussion started by: ajju
3 Replies
10. Shell Programming and Scripting
HI Guys,
I want to download files from FTP Server to my Unix server.
I have tried , buy No Luck .
Below Command i have tried.
1-Wget - Error "wget' not found"
2.ftp -n $HOST ...Not Working.
3.scp -i ftp://user:passowrd@hostname:21/ran/on/test.txt
Any Suggestion (2 Replies)
Discussion started by: pareshkp
2 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 Also
nslookup(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)