Sponsored Content
Full Discussion: FTP file from win to UNIX
Top Forums Shell Programming and Scripting FTP file from win to UNIX Post 302819585 by ripudaman.singh on Tuesday 11th of June 2013 07:32:27 AM
Old 06-11-2013
FTP file from win to UNIX

hi all,
i hv written the script for file transfer when i am trying to transfer the file on windows machine only same desktop from one location to another location that is working fine but when i am trying to transfer the same to unix server it is going in infinte loop and file is also not getting transfer. And i am not able define the variable also for transferring the file pls assist on the below code :-

Code:
setlocal enabledelayedexpansion
if exist C:\Ripudaman\VCB\FTP\*.txt (goto COPYFILES) else (goto NOFILES)

:COPYFILES
for /f %%i in ('DIR /b C:\Ripudaman\VCB\FTP\*.txt') do (
echo %%i
set fn=%%i
ftp
o 172.16.2.97
finacle
7018finacle
mput $i
bye
move %%i C:\Ripudaman\VCB\FTP\bkup\.
)

echo complete

:NOFILES
echo There are no files to move

any help will be appreciated.

---------- Post updated at 06:32 AM ---------- Previous update was at 04:06 AM ----------

m waiting for reply

Last edited by Franklin52; 06-11-2013 at 06:27 AM.. Reason: Please use code tags
 

9 More Discussions You Might Find Interesting

1. Programming

ftp a file from remote pc of win 2000

Hello. I am programming in C on HP-UNIX system,i want ftp a file from remote pc which is window 2000 system,i donot how config my HP-UNIX and pc, i donot how program in C or in shell. Thank you for help. (3 Replies)
Discussion started by: bdyjm
3 Replies

2. UNIX for Dummies Questions & Answers

Dummie Please Help With Unix And Win Xp

Please help : I have a question i am just starting to study UNIX and i need some advice,as my teacher isn,t the helpful type. I have just formatted my pc and partitioned it with win98 and winxp, do i need to create a partion for UNIX ??? OR is UNIX run in whatever partion i want it ???? Will... (6 Replies)
Discussion started by: DAFFYY30
6 Replies

3. Windows & DOS: Issues & Discussions

win,unix

hi, Could anyone tell me mounting windows directories in unix.I have used mount command in all directions like mounting hd00,hd1,hd2,hd3 and so on but that don't work for me Mohan (2 Replies)
Discussion started by: mohan
2 Replies

4. UNIX for Advanced & Expert Users

mount Win folder in UNIX ??

Hello, I like to mount an windows folder on my NT4 system in my UNIX system. How can i do that, i have installed SAMBA 2.2.7 on my Unix machine so i can access the UNIX machine from the NT . Do i need to install anything on the NT machine, or anymore software on the UNIX. I tried to do an... (5 Replies)
Discussion started by: sajjan2
5 Replies

5. UNIX for Dummies Questions & Answers

move from Win -> Unix

I'd like to become a web applications developer, and the company I currently work for use Sun/Apache and Perl, CGI and Python and Oracle to develop in (which is a little unfortunate for me as I have MS IIS and ASP/VBScript and SQL from my last job). I have an old laptop I'd like to convert from... (2 Replies)
Discussion started by: dawn
2 Replies

6. HP-UX

S-FTP HP-UX to Bitvise (Win NT)

Trying to connect to an HP-UX machine using public key authentication - using User keypair manager to create a keypair - export the public key to a file - tried both OpenSSH and SSH2 - and then transfer the public key to the $HOME/.ssh/authorized_keys file on the Unix box - but when I try to... (0 Replies)
Discussion started by: cvanvak
0 Replies

7. Windows & DOS: Issues & Discussions

RCP from Sco Unix to Win XP

Hello, Native XP rcp does not have a password prompt as far as I can see. I require a rcp.exe to copy a file from Sco to my XP pc. I did have this program that was part of pcnfs a few years ago. I need to run a scheduled batch job from a command line being. rcp.exe 192.168.5.33 -user root... (0 Replies)
Discussion started by: phil martin
0 Replies

8. Shell Programming and Scripting

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... (1 Reply)
Discussion started by: raja_1234
1 Replies

9. Shell Programming and Scripting

FTP script to FTP file to UNIX - Solaris

Hello, A couple of times per week, i receive emails notifications when files are available for processing. Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Discussion started by: bobk544
3 Replies
yppush(1M)																yppush(1M)

NAME
yppush - force propagation of Network Information Service database SYNOPSIS
domain] host] maxm] mint] mapname Remarks The Network Information Service (NIS) was formerly known as Yellow Pages (YP). Although the name has changed, the functionality of the service remains the same. DESCRIPTION
copies a Network Information Service (NIS) map (database), mapname, from the map's master NIS server to each slave NIS server. It is usu- ally executed only on the master NIS server by shell script which is run either after changes are made to one or more of the master's NIS databases or when the NIS databases are first created. See ypmake(1M) and ypinit(1M) for more information on these processes. constructs a list of NIS server host names by reading the NIS map within the domain. Keys within the map are the host names of the machines on which the NIS servers run. then sends a "transfer map" request to the NIS server at each host, along with the information needed by the transfer agent (the program that actually moves the map) to call back When the transfer attempt is complete, whether successful or not, and the transfer agent sends a status message, the results can be printed to standard output. Messages are printed when a transfer is not possible, such as when the request message is undeliverable or when the timeout period on responses expires. Refer to ypfiles(4) and ypserv(1M) for an overview of Network Information Service. Options recognizes the following options: Copy mapname to the NIS servers in domain rather than to the domain returned by (see domainname(1)). Propagate the map(s) only to the specified host. Attempt to run maxm transfers in parallel to as many servers simultaneously. Without the option, attempts to transfer a map to each server, one at a time. When a network has many servers, such serial transfers can result in long delays to complete all transfers. A maxm value greater than 1 reduces total transfer time through better utilization of CPU time at the mas- ter. maxm can be any value from 1 through the number of NIS servers in the domain. Set the minimum timeout value to mint seconds. When transferring to one slave at a time, waits up to 80 seconds for the transfer to complete, after which it begins transferring to the next slave. When multiple parallel transfers are attempted by use of the option, it may be necessary to set the transfer timeout limit to a value larger than the default 80 seconds to prevent timeouts caused by network delays related to parallel transfers. Verbose mode: messages are printed when each server is called and when each response is received. If this option is omitted, only error messages are printed. WARNINGS
In the current implementation (Version 2 NIS protocol), the transfer agent is ypxfr(1M) which is started by the ypserv(1M) program at yppush's request (see ypxfr(1M) and ypserv(1M)). Starting with ONCplus version B.11.31.02, the NIS Version 1 protocol is no longer available. AUTHOR
was developed by Sun Microsystems, Inc. FILES
SEE ALSO domainname(1), ypserv(1M), ypxfr(1M), ypfiles(4). yppush(1M)
All times are GMT -4. The time now is 10:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy