FTP xlsx file doesn't work ...contains wierd characters.
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 :
After the file is received in the FTP location & subsequently moved to windows terminal, I see the file containing weird characters and is corrupted.
Could someone suggest me the resolution?
Regards,
Bugs
Last edited by Don Cragun; 05-26-2015 at 11:24 PM..
Reason: Add CODE and ICODE tags.
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
I appreciate iif anybody can help me with this issue. I set up a Linux FTP server which is authorized user ID from AD. I do some configuration on vsftpd.conf file but it doesn't work out. I copy these configuration, can you help me to check again as when i connect through browser it always give me... (2 Replies)
Hi!
I have 2 servers. The firts has vsftpd server with this configuration:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all... (2 Replies)
Hi
I'm having some trouble with a bash shell script that I'm writing. In the script, I'm trying to upload a file to a backup repository using ftp, but the whole file doesn't get uploaded.
This is the file's properties at the start (I've highlighted the file size in red):
-rw-r--r-- 1 root... (2 Replies)
Hi,
I used below script to check the file permission but it doesnt work.
# ls -ltr
total 52
-rwx------ 1 root root 1563 Mar 6 14:12 ks-script-t-WIE3
---x--x--x 1 root root 599 Mar 6 14:14 ks-script-t-WIE3.log
-rwx------ 1 root root 553 Mar 6 14:14 ks-script-P4gFC6
drwxrwxr-- 2 root... (7 Replies)
I have 10 application servers in a distributed architecture generating their own application logs. Each server has application utility to continuously tail the log. for example following command follows tails and follows new logfiles as they are generated
server1$ logutility logtype
When I run... (8 Replies)
Hi,
Could someone suggest me how to FTP a xlsx file from unix to windows.
I can able to transfer xls file from unix to windows successfully. But if i transfer the xlsx file im not able to open, it through error like "The file format or file extension is not valid"
Thanks
Rathna (4 Replies)
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
root@PRD /> rsh DR
KFAFH_DR: protocol failure due to unexpected closure from server end
root@PRD /> telnet DR
Trying...
Connected to DR.
Escape character is '^]'.
Connection closed.
root@PRD /> ftp DR
Connected to KFAFH_DR.
421 Service not available, remote server has closed connection... (2 Replies)
Discussion started by: filosophizer
2 Replies
LEARN ABOUT PHP
ftp_set_option
FTP_SET_OPTION(3) 1 FTP_SET_OPTION(3)ftp_set_option - Set miscellaneous runtime FTP optionsSYNOPSIS
bool ftp_set_option (resource $ftp_stream, int $option, mixed $value)
DESCRIPTION
This function controls various runtime options for the specified FTP stream.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $option
- Currently, the following options are supported:
Supported runtime FTP options
+----------------+---------------------------------------------------+
| | |
|FTP_TIMEOUT_SEC | |
| | |
| | Changes the timeout in seconds used for all net- |
| | work related functions. $value must be an integer |
| | that is greater than 0. The default timeout is 90 |
| | seconds. |
| | |
| | |
| FTP_AUTOSEEK | |
| | |
| | When enabled, GET or PUT requests with a |
| | $resumepos or $startpos parameter will first seek |
| | to the requested position within the file. This |
| | is enabled by default. |
| | |
+----------------+---------------------------------------------------+
o $value
- This parameter depends on which $option is chosen to be altered.
RETURN VALUES
Returns TRUE if the option could be set; FALSE if not. A warning message will be thrown if the $option is not supported or the passed
$value doesn't match the expected value for the given $option.
EXAMPLES
Example #1
ftp_set_option(3) example
<?php
// Set the network timeout to 10 seconds
ftp_set_option($conn_id, FTP_TIMEOUT_SEC, 10);
?>
SEE ALSO ftp_get_option(3).
PHP Documentation Group FTP_SET_OPTION(3)