Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
scp shellscript
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Scandinavian
View previous topic :: View next topic  
Author Message
SirBoo
n00b
n00b


Joined: 03 Jan 2004
Posts: 18
Location: Oslo, Norway

PostPosted: Mon Oct 11, 2004 6:30 pm    Post subject: scp shellscript Reply with quote

Hei jeg prøver å lage et shellscript for å overføre en fil fra en server til en annen.
Men det stopper når scp spør etter passord.
Hvordan får jeg overfør passordet til scp?
Å bruke nøkler går ikke da den andre servern er bitte litt streng og utenfor min kontroll :p
_________________
// Marius
Back to top
View user's profile Send private message
hw-tph
l33t
l33t


Joined: 08 Jan 2004
Posts: 768
Location: Uppsala, Sweden

PostPosted: Mon Oct 11, 2004 7:50 pm    Post subject: Reply with quote

emerge dev-tcltk/expect borde hjälpa till. expect är bra för sådana här fall; jag har själv skrivit ett par skript med det. /usr/bin/autoexpect hjälper till att skriva skript också. Ibland blir det jättebra med en gång, helt utan redigering.


Håkan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Scandinavian All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum