required help on main ftp script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting required help on main ftp script
# 1  
Old 10-24-2011
Wrench required help on main ftp script

Hi ,

I am new to unix , I was planning to write a ftp script that will transfer the files to the ftp server at the specified
location mention in the properties file.... the structure of the properties file is

configuration for ftp
*********************

Code:
#remote url of the machine 
ftpurl=ftp.freebsd.org

#This is the source directoy from where the files will be picked up
SrcFolders=/home/499633/files


#This directory path should end with a slash(/)
DestFolder=/home/499633/output/


#the pattern of the files
SourcefilePattern=*.txt


# your user id 
userid=userid


#your password 
password=password

Now I want to write my main script file that will fetch the values from the properties file, Please guide me how I will write my main script file...!!Thanks IN advance..!!SmilieSmilie
# 2  
Old 10-24-2011
Duplicate Post
https://www.unix.com/shell-programmin...in-script.html

What is so different from this post and same users?

--ahamed
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to calculate the max cpu usage from the main script

Hi All, I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide which cpu number (column 2) has maximum value (column 6). Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies

2. Shell Programming and Scripting

ISSUE IN main script

Hi , I have a script that will move files which have a datetime >= currentdate-N from a source to destination folder.the input parameter are 1) Configurable N days value,2) source folderand 3) destination folder and finally the output would be The old files are moved...I have developed the... (14 Replies)
Discussion started by: nks342
14 Replies

3. Shell Programming and Scripting

configuration for ftp script in main script

Hi, I am new to shell scripting,and i was planning to write a script that will FTP files to destination folder. 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... (4 Replies)
Discussion started by: rahul125
4 Replies

4. Shell Programming and Scripting

writing the main script file

Hi, I am new to shell scripting,and i was planning to write a script that will move files which have a datetime >= currentdate-N from a source to destination folder. All configuration should be done through a properties files. Here the value of N should be taken as 10 days(modification... (6 Replies)
Discussion started by: rahul125
6 Replies

5. UNIX for Advanced & Expert Users

Pass parameter to the main script from wrapper script

Hi, I am writing a wrapper script(wrap_script.sh) to one of the main scripts (main_script.sh) The main script is executed as following: ./main_script.sh <LIST> <STARTDATE> <ENDDATE> looks for a parameter which is a LIST(consists of different list names that need to be processed), START/END... (0 Replies)
Discussion started by: stunnerz_84
0 Replies

6. Shell Programming and Scripting

AWK variable in Main script??? solved

Using an awk script , i want to store the value of a variable in the main script. currently sum is getting reset to blank in the main script. How to modify the below code to get the value of esum in the variable sum of the main script??? sum=`echo "$row" | awk -F"" '{$esum=$5}'` ... (0 Replies)
Discussion started by: skyineyes
0 Replies

7. UNIX for Advanced & Expert Users

FTP help required

Hi All, I have to FTP files to the remote system,but before putting the file into the destination directory of remote i need to check about the space availability. If the space available is greater than 90% then only i need to put the file. Do we have any ftp command or option which check the... (1 Reply)
Discussion started by: ravi.sadani19
1 Replies

8. Shell Programming and Scripting

ftp from unix to windows - urgent help required

I'm trying to ftp from a Unix machine to a Windows machine.. I've tried the following #!/bin/sh #set -x USER="user1" PASS="pass1" HOSTNAME="host1" ftp -n -i -v $HOSTNAME << EOT user $USER $PASS cd / send text1.txt close bye EOT When I try to run this, I get prompted for the... (1 Reply)
Discussion started by: sam_sal_manu
1 Replies

9. UNIX for Dummies Questions & Answers

Problem starting a script from a 'main'-script

Please Help! :o I have a main script (ksh) where another script is called (convert_picture). Normally this works ok, but since some changes has been made on the unix-server (I dont know what :( ) suddenly it doesnt work anymore: i get an error message: ksh: convert_picture not found. I am... (3 Replies)
Discussion started by: Rakker
3 Replies
Login or Register to Ask a Question