|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hi there....I'm new for the UNIX...
just wondering if there is any method that can telnet to a server without typing the userID and PWD each time... that is any command or scripts that allows me to enter the server directly? also...after i enter the server... i want to get some files then remove them... how's that can be done? thanks if anyone can give some help~~!! Cheers. ![]() |
| Sponsored Links | ||
|
|
|
|||
|
Why do u want to telnet to another server if you wish to get/delete some files? use ftp instead.
Here's a clue: $HOME/.netrc. See the man pages on netrc. This will help you in your desired task. You would also like to see the man pages of rsh |
|
|||
|
I agree with Shaik. Just to add, if you still want to login to a remote M/C without using a password, then you can use rlogin.
But in that case all you need to do is create a .hosts file in the remote M/C and put your login name there. But this is a security risk. lemme tell you that .netrc doesnt takes encryted passwords and its a normal text file. So, anyone can see your password. So, select your priorities accordingly. |
|
|||
|
Here's a sample $HOME/.netrc file: Code:
machine other_host
login user123
password password123
macdef init
hash
prompt
mget /users/shaik/*.c
mdel /users/shaik/*.c
byeNote the blank line at the end of .netrc Also, the permissions of this file should be set to 600 |
|
|||
|
My Macro part doesn't work...
if i typed pwd i will get /usr/biglemon so i put this in the .netrc file macdef hash prompt mget /usr/biglemon/* mdel /usr/biglemon/* bye i thought this would get all the files from the /usr/biglemon to my current dir... but nothing happen.... just wondering why... Thank you.... Last edited by biglemon; 01-10-2002 at 03:45 AM.. |
|
|||
|
You missed the init after your macdef. Should be like:
macdef init Hope this works out! ![]() |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete and copy file(s) slowly(!?) | trantuananh24hg | Solaris | 5 | 02-21-2008 11:00 PM |
| How to copy to server & delete locally? | mokgonec | Shell Programming and Scripting | 3 | 06-28-2007 06:16 AM |
| Unzip, copy, and delete loop | spyne | Shell Programming and Scripting | 3 | 03-07-2007 01:30 PM |
| unable to delete file for permission problem | sabyasm | UNIX for Dummies Questions & Answers | 4 | 02-26-2006 08:55 PM |
| copy files from local drive to telnet unix machine. | gary | UNIX for Dummies Questions & Answers | 4 | 05-24-2001 05:24 PM |