ahmad_abdulghany
Advanced Member level 4
- Joined
- Apr 12, 2005
- Messages
- 1,206
- Helped
- 102
- Reputation
- 206
- Reaction score
- 22
- Trophy points
- 1,318
- Location
- San Jose, California, USA
- Activity points
- 11,769
Hi,
I want to automate transferring file to 20 PCs put in the same LAN..
If it wasn't password protected, i was going to write a simple shell script that simply perform the following command on all PCs:
I want to either override password promot, or find a way to pass it automatically to the standard input ..
Can anyone help me please?
Thanks in advance,
Ahmad,
I want to automate transferring file to 20 PCs put in the same LAN..
If it wasn't password protected, i was going to write a simple shell script that simply perform the following command on all PCs:
Code:
for i in (1:20)
do
sftp user@10.0.0.$i ;
# Password should be entered here!!
put $file ;
exit ;
done
I want to either override password promot, or find a way to pass it automatically to the standard input ..
Can anyone help me please?
Thanks in advance,
Ahmad,