![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 | Thread Starter | Forum | Replies | Last Post |
| Delete and copy file(s) slowly(!?) | trantuananh24hg | SUN Solaris | 5 | 02-21-2008 08:00 PM |
| How to copy to server & delete locally? | mokgonec | Shell Programming and Scripting | 3 | 06-28-2007 02:16 AM |
| Unzip, copy, and delete loop | spyne | Shell Programming and Scripting | 3 | 03-07-2007 10:30 AM |
| unable to delete file for permission problem | sabyasm | UNIX for Dummies Questions & Answers | 4 | 02-26-2006 05:55 PM |
| copy files from local drive to telnet unix machine. | gary | UNIX for Dummies Questions & Answers | 4 | 05-24-2001 01:24 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
i create a file ".netrc" in my user/bin/
says the netrc file have this: machine apple login lemon password orange when i try to ftp apple it will require for login and password...anything i did wrong? |
|
#5
|
|||
|
|||
|
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
bye
Also, the permissions of this file should be set to 600 |
|
#6
|
|||
|
|||
|
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 12:45 AM. |
|
#7
|
|||
|
|||
|
You missed the init after your macdef. Should be like:
macdef init Hope this works out! |
|||
| Google The UNIX and Linux Forums |