home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10882 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  2.0 KB

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