home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / infosyst / gopher / 2037 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.1 KB  |  43 lines

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!usc!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Anyway to pass args from user to shell script being exec'ed?
  5. Message-ID: <ellis.727665624@nova>
  6. Keywords: exec scripts args
  7. Sender: news@zip.eecs.umich.edu (Mr. News)
  8. Organization: GMI Engineering&Management Institute, Flint, MI
  9. Date: Fri, 22 Jan 1993 01:20:24 GMT
  10. Lines: 31
  11.  
  12. I am setting up a gopher using gopher 1.1.  Currently it is not exported.
  13. I am finally beginning to understand the parameters of the exec capability.
  14. I have one exec from my top level menu that consists of the Perl script that
  15. retrieves the weather from UofMICH for one city.  This works properly.  I
  16. then have a link to the UIUC weather gopher for those who want interactive
  17. weather.
  18.  
  19. What I am trying to figure out now is whether I can run my own phone
  20. directory program that was originally designed for shell command-line usage.
  21. If called with only one non-switch arg, this C program looks only at the
  22. lastname field, starting with the first position.  If I liked the behavior
  23. of cso/ph/qi better, I would invest the effort to get that working, but at
  24. one institution searching for all ellises picked up both firstname and
  25. lastname ellises, as well as everyone in Ellison Hall.  That is completely
  26. unacceptable in my view.
  27.  
  28. Something I read somewhere led me to believe that I could simply declare the
  29. link to be type 7 and that the search arg would be passed to the script as
  30. arg1.  This is not working for me.  Is there some way of accomplishing this?
  31. Short of rewriting the C code for search and exec?
  32.  
  33. If there is currently no way of doing this it seems like it would be a real
  34. useful feature.  Has this been discussed?
  35.  
  36. Thanks for any suggestions or discussion.
  37.  
  38. --
  39.                                                           ___________________
  40.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  41.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  42.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  43.