Wrox Programmer Forums
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 17th, 2008, 02:08 AM
Authorized User
 
Join Date: Jun 2006
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ajit
Default Rsync issue

Hi, I am trying to rsync a file to remote system. have a shell script for it, by running which i can copy the file. But during the process it prompts me for password of the remote system. How can I automate this process?. How can I make the script to take any default password?. This is required because, I have to add this job to crontab. One way I found from a site is to set a environment variable called RSYNC_PASSWORD and the password in that. I created such env variable. by echoing the var I am finding the value also. But Rsync is not considering it as the default password. This variable is stored in /etc/profile file.
   Another way is having a password file. I tried a password file, and given that as --password-file <password file name with full path>. This didn't work. I also tried by creating a simple text file having just password in it. and gave the full path in --password-file option. Still didn't work.
 Can anybody please help me in solving,
  ThanX in advance
-Regards


Ajit
__________________
Ajit
 
Old January 17th, 2008, 06:37 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You're not using rsync over ssh are you? If that was the case you'd need to set up ssh key authentication



--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down Issue SKhna ASP.NET 2.0 Basics 1 March 19th, 2008 06:29 AM
Printing Issue raja.tadi Access VBA 2 June 26th, 2006 04:53 PM
Another issue islandtiu BOOK: Beginning ASP 3.0 1 February 14th, 2005 11:49 AM
Sub Report Issue bjoneskc01 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 January 21st, 2005 11:26 AM
Rsync Master to slave clem_c_rock Linux 1 September 7th, 2004 10:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.