The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP Download username and password kumarrana UNIX for Dummies Questions & Answers 2 05-11-2008 05:45 PM
How to use SFTP from command line without entering user and password Hangman2 UNIX for Advanced & Expert Users 5 03-03-2008 09:03 AM
Entering secret password chiru_h Shell Programming and Scripting 4 08-20-2007 02:31 PM
username password in script roshanjain2 Shell Programming and Scripting 5 02-13-2007 02:47 AM
setting username and password for ftp div UNIX for Advanced & Expert Users 1 12-08-2006 08:09 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 01-10-2006
Registered User
 

Join Date: May 2005
Posts: 64
Remote Copy without entering Username and Password

I tried the following script to copy one file automatically:

#!/bin/csh -f
su - root -c "rcp 150.10.128.1:/export/home/sn408Xl/sn408Sol/$fn $fn

This works fine but is there a better way to copy remotely without entering the username and password? Moreover, after the file is copied a message shows up that the file is copied. I don't want this message to show up. For your info, I'm using Solaris.

Thanks!
Reply With Quote
Forum Sponsor
  #2  
Old 01-11-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Best way is to use scp (part of ssh). Search the forums for examples (such as this thread ).

As far as the second part of your question, you would need to redirect stdout/error - see this post.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0