.netrc file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers .netrc file
# 1  
Old 07-25-2006
.netrc file

hello,
I am trying to write an automated script to transfer multiple files to another solaris 5.8 box. I am using the #! /bin/bash prompt and I am having trouble finding/creating the .netrc login file. I googled and the only info I got was that I should create/find it in my home directory. I went to /home and tried to vi .netrc and said Operation not applicable.
-Thanks
# 2  
Old 07-25-2006
Home directory doesn't mean /home only, every user has its own home directory, to find your home directory:
Code:
echo $HOME

or
Code:
cd ~

"~" should take to your home directory. Then edit your .netrc file.

Regards,
Tayyab
# 3  
Old 07-26-2006
thank you very much!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Doubt in .netrc file for ftp login

Hi, i have a doubt. i am using .netrc file for login to a ftp server. ftp abc.ftp.com suppose i have 2 userid and password for the same server as shown below. which one is it going to read from the .netrc file? cat .netrc machine abc.ftp.com login admin1 password pass1 machine... (13 Replies)
Discussion started by: Little
13 Replies

2. Shell Programming and Scripting

How to use .netrc file and how to use it in script

How to use .netrc file and how to create and how can I use it with my script where I need to upload the file to ftp server.I can do it ftp script but my requirement is to us only .netrc file. I tried this way machine 172.00.xx.49 login svxxxx password paxxxx macdef init ... (0 Replies)
Discussion started by: anuragpgtgerman
0 Replies

3. AIX

.netrc and ftp

Hello all, I am using a .netrc to automatically access an ftp host. Here is the line I use... machine 412.blank.com login nw\mylogin password ******* when I use this command... ftp 412.blank.com I get... Connected to 412.blank.com. 220 server_7 FTP server (EMC-SNAS: 5.5.25.2)... (4 Replies)
Discussion started by: magikalpnoi
4 Replies

4. UNIX for Advanced & Expert Users

using .netrc

Hi friends, Can we use the file .netrc for automating ftp from a perl script ? and if so then how do i go about it ? can i have a sample script for this ? thanks in advance Veera (6 Replies)
Discussion started by: sveera
6 Replies

5. UNIX for Dummies Questions & Answers

.netrc file

I had configured the .netrc file for automatic login to ftp however i am not clear how to give the port no after the "machine" token: as in, when i give machine xyz.com 2121 login <usid> password <pass> i am getting the error Unknown .netrc keyword 2121 while giving the command ftp xyz.com... (1 Reply)
Discussion started by: jithinravi
1 Replies

6. Shell Programming and Scripting

how to encript password in .netrc file

hi, I am using .netrc file WITH OUT encripting the password Code in .netrc file: ------------------- machine $SYSTEM NAME login FTFOA001 password 1Q2W3E4R how to encript password in .netrc file.(i should not use "1Q2W3E4R" as password). after encripting i should able to connect with... (1 Reply)
Discussion started by: getgopu25
1 Replies

7. Shell Programming and Scripting

auto-connect with out .netrc file

Hi all, Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code ex: ftp -i <remote system name> from now i should NOT use .netrc file how can i login automativally with out asking userid and pqssword. note: i am working on... (1 Reply)
Discussion started by: getgopu25
1 Replies

8. UNIX for Dummies Questions & Answers

Help in .netrc

Hi, I would like to ask if the .netrc file should really be stored/placed in the /home/<userid> directory or in the home directory indicated by the uinfo command? I am currently having problems with a .netrc file which is owned by a id which has it's home directory pointed to a... (2 Replies)
Discussion started by: edu_escandor
2 Replies

9. Shell Programming and Scripting

.netrc question

Hi, id like to ask a question about .netrc. Id like to have 2 entries for a particular machine, but with different ftp userid's ie machine 172.19.8.26 login dcm password dcm macdef job1 bin hash bye machine 172.19.8.26 login ppp password ppp macdef job2 bin hash bye this code DOES... (8 Replies)
Discussion started by: hcclnoodles
8 Replies

10. UNIX for Advanced & Expert Users

netrc file encrypted password

Hi, I do not want the plaintext password to appear in the netrc file. So I want to encrypt the password. Is there a way to encrypt the password and still make ftp to use the netrc ? Thanks in advance. -Gow:confused: (2 Replies)
Discussion started by: ggowrish
2 Replies
Login or Register to Ask a Question