Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TX FILE BETWEEN 2 SCO

Status
Not open for further replies.

marghe

Instructor
Apr 5, 2004
13
IT
I've 2 sco-unix.
I've in both machine the user info with pass info
I want to transmit my file between the 2 computers with an rcp command.
The command give me a timeout error.
In /etc/hosts is correct.
What do I do?

Thank
Dax
 
OK, sorry....

I must put some file from system a to system b.
I've the user pippo with password pippo in both the system.
The /etc/hosts on both the system contain the IP on the systems

I've this script:
....
NAME=AU'date +%y%m%d'.ris.'uname -n
tar cvpf $NAME /tmp/DATI.1 /tmp/DATI.2
gzip -9 $NAME
chmod 777 $NAME.gz
rcp /tmp/${NAME}.gz sede2:/u/agiorna/${NAME}.gz

Why the rcp command give me a timeout error?
Bye
Dax



 
Can you ping each box from the other ?
Have you a /etc/hosts.equiv or $HOME/.rhosts file ?
Anyway:
man rcp
man hosts.equiv

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
che c...o e' questo?
NAME=AU'date +%y%m%d'.ris.'uname -n
all ' are backquotes, missing the last one (typo ?)
the opt p in tar is here useless

tar cvpf $NAME /tmp/DATI.1 /tmp/DATI.2

prouve you know regexpr:

tar cvf $NAME /tmp/DATI.[12]


gzip -9 $NAME # let zip try itself the compressions rate
chmod 777 $NAME.gz ## perche' ?

da dove spunta questo /tmp ?

rcp /tmp/${NAME}.gz sede2:/u/agiorna/${NAME}.gz

i prefer ssh, scp,

rcp $NAME.gz sede2:/u/agiorna

nota all {} are hese useless + confusing
ammesso sede sia un (accessibile) host.

have you ssh installed, try:

tar cf - file[ABC] | ssh hostname tar xfvp -

saluti


:) guggach
 
Ok this isn't a rcp solution, but it'll do what you want.


vi copy.file.sh

tranit()
{
sleep 3
echo "pippo\r"
sleep 1
echo "pippo\r"
sleep 1
echo "bin\r"
sleep 1
echo "put file.gz\r"
sleep 1
echo "exit\r"
sleep 5
}
tranit|ftp remote.ip
:wq

chmod 700 copy.file.sh

replace file.gz with your own filename or var

./copy.file.sh


-
| Mike Nixon
| Unix Admin
-------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top