Home » Infrastructure » Unix » to throw manual error message, if ftp connection timed out (HP-UNIX, K-shell)
icon4.gif  to throw manual error message, if ftp connection timed out [message #446266] Sun, 07 March 2010 05:59 Go to next message
devi_vi
Messages: 10
Registered: March 2010
Location: bangalore
Junior Member
hi all.,

i have a requirement like, am connecting to a server and transfering a file through ftp....

suppose if the the server is present and it is not responding,the program tries for 2 mins and then the program automatically throws an exception like ftp:connection timedout...

but i need to handle that exception, and manually thrrow an error message... if the connection takes more than 30 seconds i need to therow an error message.,

is ther any ways to achieve this... pls help someone... its really urgent....
Re: to throw manual error messages if ftp connection timed out [message #446270 is a reply to message #446266] Sun, 07 March 2010 06:19 Go to previous messageGo to next message
Michel Cadot
Messages: 58605
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
How ir this related to Oracle?

Please read OraFAQ Forum Guide and do no use IM speak and words like urgent (why is there something urgent for us to help you? Do you ever see someone in a forum saying it is not urgent? urgentcy is irrelevant in a forum) but feedback to those that help you.

Regards
Michel

[Updated on: Sun, 07 March 2010 06:21]

Report message to a moderator

Re: to throw manual error messages if ftp connection timed out [message #447278 is a reply to message #446270] Fri, 12 March 2010 18:02 Go to previous message
andrew again
Messages: 2574
Registered: March 2000
Senior Member
Try Perl if you want more control than your FTP client provides.

http://www.google.com/codesearch?as_q=ftp+timeout&as_lang=perl

http://www.orafaq.com/forum/mv/msg/36978/161189/45693/#msg_161189

Previous Topic: Which Linux/UNIX/Solaris/Whatever distribution is the most appropriate
Next Topic: ORACLE account
Goto Forum:
  


Current Time: Mon Jul 28 12:44:14 CDT 2014

Total time taken to generate the page: 0.09986 seconds