05-30-2014
Check if you are transfering the file in binary mode not in text, since xlsx is nothing more the zip file with xml files inside.
Regards
Peasant.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is there a way to ftp file from windows to Unix directory by using crontab to set up a job ?
Thanks! (4 Replies)
Discussion started by: whatisthis
4 Replies
2. Shell Programming and Scripting
Hi
I'm new working in UNIX, So, I want to know How I can send a file from UNIX to Windows server with FTP. This is my script.
ftp -i -n -v <<**
open 199.99.99.99
user user1 password1
lcd C01_07_06 /* source/
cd //199.98.98.98/group1/reports /*destination*/
put file1.sh ... (1 Reply)
Discussion started by: edzela
1 Replies
3. Shell Programming and Scripting
I need your help for a FTP Job to be schedule to copy files from windows to Unix.
in a set of time interval.
My requirement is as follows.
1.Script should check whether file is available in the windows folder ,
if available then do FTP to unix server , and then move... (3 Replies)
Discussion started by: sandeep.kamble
3 Replies
4. Shell Programming and Scripting
I run an application that creates a hostname_log.txt file on the c:\ of each windows workstation.
At the end of each day, these log files are FTP'd to a directory on a UNIX box.
When I run "ls -lrt", the timestamp that is displayed is the timestamp that the FTP occured, not the timestamp... (2 Replies)
Discussion started by: gavman99
2 Replies
5. Shell Programming and Scripting
Hi,
I have a ftp script to ftp files from unix to windows. Now i need to pull the latest file from unix to windows. It is not working.
ftp -nvi $SERVER > ${FILE_DIR}/NavigationftpLog << EOD
user $USER $PWD
lcd $FILE_DIR
echo "the local directory is $FILE_DIR"
cd $Remote_PATH
echo... (2 Replies)
Discussion started by: ammu
2 Replies
6. Shell Programming and Scripting
Hi all,
I have a file in windows, example
a.txt
****
aaa
bbb
ccc
<empty line>
when i transfer this file to unix using ftp, and viewed the file
# vi a.txt
aaa
bbb
ccc
#
I dont get the empty line which i specified in that file in windows.
Please help me, which in unix... (5 Replies)
Discussion started by: Nandagopal
5 Replies
7. Shell Programming and Scripting
Hi, I am new to this subject.....Can someone please help me out with the script...
unix usernm "sdhftst"
unix pwd "chsd13"
windows usernm "dfghtst"
windows pwd "chsd13"
path..../xxx/xxxxx/xxxxxx/xxxxxxx
please can u get me a script...its only one file to get ftp.
Thanks... (2 Replies)
Discussion started by: himakiran9
2 Replies
8. Shell Programming and Scripting
I have a problem with ftp. i want to ftp a file "file.txt" from unix box to windows server.
The destination folder is something like this:
"\\windowsservername\apps\is\"
FTPUSER=ftp1
FTPPASS=****
ftp -v -d -n > ftplog <<!EOF
open windowsservername
user $FTPUSER $FTPASS
cd... (3 Replies)
Discussion started by: Diddy
3 Replies
9. Shell Programming and Scripting
Hi all..
Please help me on below requirement.
I have an excel file ftped from windows to unix location. I am not able to open the file. if i am opening it in vi editor, i am getting only junk characters. I have to make the excel file as .csv file and read the data to put some business... (3 Replies)
Discussion started by: gani_85
3 Replies
10. Shell Programming and Scripting
Guys,
I've a xlsx file containing pivot tables and my job is to FTP it from one Linux terminal to another.
I use the script below :
ftp -in xxxx > /ftp.log 2>&1 <<EOT
user xxx yyyy
binary
cd <directory>
put xxx.xlsx `basename xxx.xlsx`
bye
EOT
After the file is received in the FTP... (2 Replies)
Discussion started by: bhagat.singh-j
2 Replies
LEARN ABOUT MOJAVE
curlopt_proxy_transfer_mode
CURLOPT_PROXY_TRANSFER_MODE(3) curl_easy_setopt options CURLOPT_PROXY_TRANSFER_MODE(3)
NAME
CURLOPT_PROXY_TRANSFER_MODE - append FTP transfer mode to URL for proxy
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_TRANSFER_MODE, long enabled);
DESCRIPTION
Pass a long. If the value is set to 1 (one), it tells libcurl to set the transfer mode (binary or ASCII) for FTP transfers done via a HTTP
proxy, by appending ;type=a or ;type=i to the URL. Without this setting, or it being set to 0 (zero, the default), CURLOPT_TRANSFERTEXT(3)
has no effect when doing FTP via a proxy. Beware that not all proxies support this feature.
DEFAULT
0, disabled
PROTOCOLS
FTP over proxy
EXAMPLE
TODO
AVAILABILITY
Added in 7.18.0
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if the enabled value is not supported.
SEE ALSO
CURLOPT_PROXY(3), CURLOPT_HTTPPROXYTUNNEL(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_PROXY_TRANSFER_MODE(3)