Sponsored Content
Top Forums Shell Programming and Scripting ftp files from local sys to unix server Post 302549949 by rajesh_pola on Wednesday 24th of August 2011 09:32:08 AM
Old 08-24-2011
ftp files from local sys to unix server

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.
Code:
lclpath=/dba58/d039/ftppubd/ajay
echo $lclpath
cd $lclpath
user='rajesh'
pswd='rajesh'
host="3.209.136.253"
ftp_path="D:\Others\back2school"
ftp -v -n $host << EOF
user $user $pswd
lcd $ftp_path
get raji.txt
bye
EOF
echo "FTP DONE"

the above code not working...
if any help will appreciate.

regards
rajesh

Moderator's Comments:
Mod Comment Please use code tags, thanks.

Last edited by zaxxon; 08-24-2011 at 10:39 AM.. Reason: code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP multiple files from remote server to local server

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)
Discussion started by: berlin_germany
2 Replies

2. Shell Programming and Scripting

Dowloading a File from FTP Server to a local Server where User Id's are different

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)
Discussion started by: ranjith_taurean
1 Replies

3. Shell Programming and Scripting

how to FTP a file from the local folder to unix server

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)
Discussion started by: little_wonder
3 Replies

4. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

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)
Discussion started by: arunkumarmc
5 Replies

5. AIX

Do I need to configure my local windows to FTP files from local windows to a UNIX AIX server?

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)
Discussion started by: rajsharma
1 Replies

6. Shell Programming and Scripting

script for to take files from FTP server to UNIX server and Unzipped that files

script for to take files from FTP server to UNIX server and Unzipped that files (1 Reply)
Discussion started by: sunilamarnadh
1 Replies

7. UNIX for Dummies Questions & Answers

Copying files from Unix Server to Local

How do i copy files from Unix Server to my Local Desktop.. ANy ideas..please suggest....V Urgent. (1 Reply)
Discussion started by: win4luv
1 Replies

8. UNIX for Dummies Questions & Answers

Copying files from Unix Server to Local

How to copy files from Unix server to Local (6 Replies)
Discussion started by: win4luv
6 Replies

9. Shell Programming and Scripting

FTP files from different directory from remote server to one directory in local

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)
Discussion started by: dassv
3 Replies

10. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies
MAKE_UNICODEMAP(1)														MAKE_UNICODEMAP(1)

NAME
make_unicodemap - construct a unicode map file for Samba SYNOPSIS
make_unicodemap codepage inputfile outputfile DESCRIPTION
This tool is part of the Samba suite. make_unicodemap compiles text unicode map files into binary unicode map files for use with the internationalization features of Samba 2.2. OPTIONS
codepage This is the codepage or UNIX character set we are processing (a number, e.g. 850). inputfile This is the input file to process. This is a text unicode map file such as the ones found in the Samba source/codepages directory. outputfile This is the binary output file to produce. SAMBA UNICODE MAP FILES
A text Samba unicode map file is a description that tells Samba how to map characters from a specified DOS code page or UNIX character set to 16 bit unicode. A binary Samba unicode map file is a binary representation of the same information, including a value that specifies what codepage or UNIX character set this file is describing. FILES
CP<codepage>.TXT These are the input (text) unicode map files provided in the Samba source/codepages directory. A text unicode map file consists of multiple lines containing two fields. These fields are : o character - which is the (hex) character mapped on this line. o unicode - which is the (hex) 16 bit unicode character that the character will map to. unicode_map.<codepage> - These are the output (binary) unicode map files produced and placed in the Samba destination lib/codepage direc- tory. INSTALLATION
The location of the server and its support files is a matter for individual system administrators. The following are thus suggestions only. It is recommended that the make_unicodemap program be installed under the $prefix/samba hierarchy, in a directory readable by all, write- able only by root. The program itself should be executable by all. The program should NOT be setuid or setgid! VERSION
This man page is correct for version 2.2 of the Samba suite. SEE ALSO
smbd(8) smb.conf(5) AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter 19 November 2002 MAKE_UNICODEMAP(1)
All times are GMT -4. The time now is 03:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy