home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!cnews
- From: mgj@franklin.ee.umr.edu (Mahesh Govind Joshi)
- Newsgroups: comp.unix.questions
- Subject: .netrc & rexec !!
- Message-ID: <1992Sep10.053404.11843@umr.edu>
- Date: 10 Sep 92 05:34:04 GMT
- Sender: cnews@umr.edu (UMR Usenet News Post)
- Reply-To: mgj@ee.umr.edu (Mahesh Govind Joshi)
- Organization: University of Missouri - Rolla
- Lines: 40
- Nntp-Posting-Host: franklin.ee.umr.edu
- Originator: mgj@ee.umr.edu
-
- Hi,
-
- I have tried local help out here, but have failed to get an
- answer.
-
- In my program, I am doing an rexec. The man pages for "rexec"
- say that " If a username and password are both specified, then
- these are used to authenticate to the foreign host; otherwise the
- environment and then the user's .netrc file in his home
- directory are searched for appropriate information."
-
- In my .netrc(in my home directory at ee.umr.edu) i have :
- machine mcs213e.cs.umr.edu /* the machine on which
- rexec is being performed */
- login mjoshi /* my login name on mcs213e.cs.umr.edu */
- password xxxxx
-
- What changes do I need to my rexec call now?
-
- My original call is as follows:
- rem = rexec(hp,inport,"mjoshi","xxxx","new",NULL);
- This works fine.( w/o my .netrc). But, I just cant figure out
- how to use rexec with a .netrc file. (i.e what changes do I make
- in my call to rexec(....)?
-
-
- This question is very elementary but I am using "rexec" for the
- first time. I hope I am not too confusing.
-
- Thanks in advance !!
-
- Mahesh Joshi
- ________________________________________________________________________
- Mahesh Joshi | Bura duniya ko hai kehta
- Help Desk Consultant | Aisa bhola to na ban
- Snail Mail:- 1300 N. Oak Street | Jo hai karta,woh hai bharta
- #17, Rolla MO 65401. | Hai yahan ka hai chalan
- Voice:(314)341-8197. | Takdeer nahi chalnegi yahan
- Email : mgj@ee.umr.edu | ---- Majrooh Sultanpuri----
- ------------------------------------------------------------------------
-