The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Posting a file from Unix to URl PoojaM UNIX for Advanced & Expert Users 1 05-06-2008 05:57 AM
FTP Connection mungaz Security 0 05-23-2006 01:48 PM
Posting to a log file in KSH sidamin810 Shell Programming and Scripting 2 07-26-2005 09:57 AM
posting a file sannu Shell Programming and Scripting 1 09-06-2004 06:06 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-08-2008
komalkumar komalkumar is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 4
File posting through FTP connection

Hi,
I am posting a file to a remote directory using FTP connect. Its a table that I am copying to an excel format, pasting that file to a server location and then taking that file from this location to copy it to the remote directoty location. The file gets copied successfully but while opening it "File is corrupt" message comes. I tried putting a test excel at the server location (thinking there might be any problem with the excel I am making out of the grid contents) but that is also not opening. If I copy a txt document that is opening. So some binary conversion related problem is there. Or any other information required. Pease let me know.
Thanks a lot,
Komal
  #2 (permalink)  
Old 04-08-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,976
did you set the transfermode to "bin"? anyway maybe you better use "scp" to transfer files between servers... it's more secure
  #3 (permalink)  
Old 04-08-2008
komalkumar komalkumar is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 4
Thanks a lot for your prompt reply.
I am using

ftp.setFileTransferMode(FTP.BINARY_FILE_TYPE);

where ftp is an :- FTPClient ftp = new FTPClient();

so the mode is binary..
Is there some problem with firewalls??
Please help..
  #4 (permalink)  
Old 04-08-2008
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,976
i don't know what you are doing? do you transfer files via script?
  #5 (permalink)  
Old 04-08-2008
komalkumar komalkumar is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 4
I am using java. FTPClient() for connection to remote directory, login, storing file, logoff and then disconnect.
  #6 (permalink)  
Old 04-08-2008
komalkumar komalkumar is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 4
Thanks Naresh.
I will try and let you know if it works.

After you complete the registration process, you can see a New Thread button at the start and end of the list stating the threads in the sub-heading.
  #7 (permalink)  
Old 04-08-2008
naresh.drdo naresh.drdo is offline
Banned
  
 

Join Date: Feb 2008
Posts: 2
FTPClient

Quote:
Originally Posted by komalkumar View Post
Thanks a lot for your prompt reply.
I am using

ftp.setFileTransferMode(FTP.BINARY_FILE_TYPE);

where ftp is an :- FTPClient ftp = new FTPClient();

so the mode is binary..
Is there some problem with firewalls??
Please help..
hi

U can transfer file by using
# ftp ipno.
# bin
# mget filename
# mput filename
#bye

When u want open some file u need spl editors that could open only in Xwindow mode. Better use ftp as a file transfer only. For opening of files use telnet connection.

for user frndly we have gftp is available
#gftp
It will open a window to transfer files


pls tell me how to post a new Question in this forum. give the link or any button.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0