home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / next / programm / 6025 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  44 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!uncle!oink!count0!cgb
  3. From: cgb@count0.cmhnet.org  (Charles G. Bennett)
  4. Subject: Re: Command-line apps now harder (Can you pass arguments?)
  5. Message-ID: <1992Sep6.161750.549@count0.cmhnet.org>
  6. Sender: cgb@count0.cmhnet.org
  7. Reply-To: cgb@count0.cmhnet.org
  8. Organization: BenaTong
  9. References: <1992Sep4.194248.568@leland.Stanford.EDU>
  10. Date: Sun, 6 Sep 1992 16:17:50 GMT
  11. Lines: 31
  12.  
  13. In article <1992Sep4.194248.568@leland.Stanford.EDU>  
  14. qureshi@unixhub.slac.stanford.edu ("For deposit only") writes:
  15. > In article <1992Sep2.141110.19865@pencom.com> alex@laos (Alex D. Nghiem)  
  16. > writes:
  17. > > 
  18. > > You can always use open, such as open Example.app to launch the  
  19. application.
  20. > > 
  21. > > 
  22. > > Best regards,
  23. > > 
  24. > > 
  25. > > Alex Duong Nghiem          Phone: (512) 343-1111
  26. > How can you also pass arguments to the application being opened.  e.g, open  
  27. > bar.app and have it open a file called "foo".  
  28. > I tried "open bar.app foo" but it doesn't work.
  29. > Thanx,
  30. > imran
  31.  
  32. Well NXArgv and NXArgc are still there, so If YOU are writing the app
  33. just use the getopt stuff to parse the "bad fellows"  out.
  34.  
  35. Chuck
  36. -- 
  37. Chuck Bennett, BenaTong Consulting
  38. Harem Security (UNIX Consulting :-) )
  39. cgb@count0.cmhnet.org
  40.