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
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT MOJAVE
curlopt_chunk_bgn_function
CURLOPT_CHUNK_BGN_FUNCTION(3) curl_easy_setopt options CURLOPT_CHUNK_BGN_FUNCTION(3)NAME
CURLOPT_CHUNK_BGN_FUNCTION - callback before a transfer with FTP wildcardmatch
SYNOPSIS
#include <curl/curl.h>
long chunk_bgn_callback(const void *transfer_info, void *ptr,
int remains);
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_CHUNK_BGN_FUNCTION,
chunk_bgn_callback);
DESCRIPTION
Pass a pointer to your callback function, which should match the prototype shown above.
This callback function gets called by libcurl before a part of the stream is going to be transferred (if the transfer supports chunks).
The transfer_info pointer will point to a struct curl_fileinfo with details about the file that is about to get transferred.
This callback makes sense only when using the CURLOPT_WILDCARDMATCH(3) option for now.
The target of transfer_info parameter is a "feature depended" structure. For the FTP wildcard download, the target is curl_fileinfo struc-
ture (see curl/curl.h). The parameter ptr is a pointer given by CURLOPT_CHUNK_DATA(3). The parameter remains contains number of chunks
remaining per the transfer. If the feature is not available, the parameter has zero value.
Return CURL_CHUNK_BGN_FUNC_OK if everything is fine, CURL_CHUNK_BGN_FUNC_SKIP if you want to skip the concrete chunk or
CURL_CHUNK_BGN_FUNC_FAIL to tell libcurl to stop if some error occurred.
DEFAULT
NULL
PROTOCOLS
FTP
EXAMPLE
TODO
AVAILABILITY
This was added in 7.21.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_CHUNK_END_FUNCTION(3), CURLOPT_WILDCARDMATCH(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_CHUNK_BGN_FUNCTION(3)