1826319 Members
3670 Online
109692 Solutions
New Discussion

Re: timeout ftp client

 
Massimo_20
Frequent Advisor

timeout ftp client

how to set the timeout in ftp client??
I need, when a network crash occours, the ftp client connection terminate in the set timeout.


Thanks in advance.
4 REPLIES 4
Michael Schulte zur Sur
Honored Contributor

Re: timeout ftp client

Hi,

As much as I know, the timeout is set on the side of the ftpd and not in the client.

greetings,

Michael
RAC_1
Honored Contributor

Re: timeout ftp client

man ftpd. I think you have some option there. Not on client side unless you are using ftp client software like cuteftp etc.
There is no substitute to HARDWORK
Dieter Degrendele_1
Frequent Advisor

Re: timeout ftp client

Hi,

Use the flag -T in your ftpd daemon.

It sets the maxtimeout for client connections.

Cheers,
Dieter Degrendele
The possible we did, the unpossible we're doing but for a miracle you have to wait some time.
Todd McDaniel_1
Honored Contributor

Re: timeout ftp client

I prefer to use a TMOUT variable that is set in the /etc/profile and exported.

Works well for my users. and applies to all users and you can modify it based upon the user id if you want to make it more complex.

# set TMOUT
if [ $LOGNAME != "root" -a $LOGNAME != "oracle" ]
then
if [ "$TMOUT" != 7200 ]
then
if [ $LOGNAME = "applmgr" ]
then
TMOUT=3600; export TMOUT
else
TMOUT=7200; readonly TMOUT; export TMOUT
fi
fi
fi


Of course you must have a kill script with this variable as the input to validate a user.
Unix, the other white meat.