Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > ssh connection timeout ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-14-07, 06:13
GhostDJ GhostDJ is offline
Registered User
 
Join Date: Sep 2003
Location: France
Posts: 6
Question ssh connection timeout ?

Hi
I have a script, doing some ssh ...scp ... from a master server to several users from a unique machine
the problem is, that some user are blocking at the password step though I have filled the authorized_key of the master server...
it could also append, if the password changes

so i 'd like to make a timeout but I don't know how...

this example does"nt work :
scp blablabla &
wait $!

ON SCREEN :
+ scp /data/samba/masters/admin/admin.tar psunit04@TOTO:/exec/products/unit04/admin.tar
Welcome to the server TOTO,
psunit04@TOTO's password:

waiting from here...so sad

the only solution I see, is to replace wait, by a loop that "sleep" while the pid is not ended, and at last kill the pid
that 's not very nice for me...

is there another solution ?

thanks
__________________
[th4nK U]
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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