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