The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
Google UNIX.COM


IP Networking Questions involving TCP/IP, Routers, Hubs, Network protocols, etc go here.

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 02:57 AM
FTP Connection mungaz Security 0 05-23-2006 10:48 AM
Posting to a log file in KSH sidamin810 Shell Programming and Scripting 2 07-26-2005 06:57 AM
posting a file sannu Shell Programming and Scripting 1 09-06-2004 03:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-08-2008
DukeNuke2's Avatar
Soulman (Moderator)
 
Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,096
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
did you set the transfermode to "bin"? anyway maybe you better use "scp" to transfer files between servers... it's more secure
Reply With Quote
  #3 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this 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..
Reply With Quote
  #4 (permalink)  
Old 04-08-2008
DukeNuke2's Avatar
Soulman (Moderator)
 
Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,096
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
i don't know what you are doing? do you transfer files via script?
Reply With Quote
  #5 (permalink)  
Old 04-08-2008
Banned
 

Join Date: Feb 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #6 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
I am using java. FTPClient() for connection to remote directory, login, storing file, logoff and then disconnect.
Reply With Quote
  #7 (permalink)  
Old 04-08-2008
Registered User
 

Join Date: Apr 2008
Posts: 4
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101