In the .netrc file how do we give the ftp server details such as user name and password if for the same ftp server more than one user information is required to be populated and accessed.
for eg if i give
machine 121.12.12.12 USER sss1 paeeword ddd1
mcdefinit
cd /d/d
machine 121.12.12.12 USER sss2 paeeword ddd2
mcdefinit
cd /d/s
How can i access the information in a shell program so that the system will login to the remote server based on the user name specified in the script because if i do not specify any user it will take the first user and automatically login
If i specify any username it will not look into the .netrc file
and prompt for password
what can be done to solve this issue
for eg if i give
machine 121.12.12.12 USER sss1 paeeword ddd1
mcdefinit
cd /d/d
machine 121.12.12.12 USER sss2 paeeword ddd2
mcdefinit
cd /d/s
How can i access the information in a shell program so that the system will login to the remote server based on the user name specified in the script because if i do not specify any user it will take the first user and automatically login
If i specify any username it will not look into the .netrc file
and prompt for password
what can be done to solve this issue