I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder.
All configuration should be done through a properties files.I was planning that All configuration should be done
through a properties files. and finally the output should be Files are transferred
I have developed a properties file named ftp.properties and the content of this file are...
135.23.34.212 is the remote ip and rest all is clear
I have also developed another main script file named ftp_script.sh which will read the properties file(ftp.properties)
contents are...
Now I want to change the structure of my properties file(ftp.properties) in the below format...
Could you please guide me what should be the contents of main script file named ftp_script.sh ...as now there will be changes in
ftp_script.sh....!!
Hi,
I have to transfer my files using FTP. Few files are in Zipped format (.Z) and few are in .PX format . For zipped files, we need to change the mode to binary while transferring the files whereas for the px files the mode should be ascii.
Eg: sample1.z
sample2.z
sample3.z
sample.px ... (2 Replies)
Hi Am using unix Ksh
Am getting the problem while transferring zero size files through the script .
When i transfer zero size files from local machine to remote machine manually i can able to do it .
My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
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)
I have to write script in which I have to copy files from different directories on machine A and put them in corresponding directories in machine B.
Here machine A remains same per project and machine B keeps on changing.
Is there any way through which I can do this using single remote... (1 Reply)
HI Experts,
I have following code to FTP all pdf files from remote (win sever) to Linux box.
function LsFiles(){
ftp -n -i -v $HT <<end_ftp
user $USR $PASSWD
cd $DIRNAME
ls "-lrt *.pdf"
bye
end_ftp
}
LsFiles > list_of_files.txt
function getFiles(){
ftp -n -i -v $HT <<end_ftp... (2 Replies)
Hi,
I'm uploading files using internet explorer.
1.Open internet explorer 6.0
2.Open site like ftp://172.45.15.1
3.Copy files
The files which I'm copying are basically zip files. What is the default transfer mode, I mean ASCII/BINARY ???.
The problem I'm facing, while extracting these... (4 Replies)
I'm in the process of writing a shell script with copies files from one linux box to another using scp. I wish to run this through a cronjob so it cannot be interactive.
This is what I have so far.
#!/bin/sh
PASSWD='passswd'
dateset=$( date | awk '{print $2 $3 $6}')
for dates in $dateset;... (1 Reply)
Hi,
I'm an intern at a business that just acquired a company that ran off the unix system. They have files on this workstation that they would like to move to a windows XP pro system, but no one (myself included) has enough unix knowledge to know how to do this. It's my understanding that this can... (8 Replies)
My oracle database is generating archive logs. I want to copy those archive logs over to backup server on a regular basis. I know how to create an ftp job and I can put it in my crontab. My problem is that I don't know how to send the files just once instead of sends all the files in the... (4 Replies)
Hi all.
1. How can i copy files from one unix system to another. should i use ftp? so How?
2. How can i create an archive whose extention is tar.gz? and how can i decompress them later?
3. WHat is RPM ? what does it stands for?
Thanks (5 Replies)