home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.smalltalk
- Path: sparky!uunet!portal!samantha
- From: samantha@shell.portal.com (Samantha - Atkins)
- Subject: Re: command line parsing
- Message-ID: <C03EKB.1AB@unix.portal.com>
- Keywords: Smalltalk commandline
- Sender: news@unix.portal.com
- Nntp-Posting-Host: jobe
- Organization: Portal Communications Company -- 408/973-9111 (voice) 408/973-8091 (data)
- References: <670@funsys.funsys.se>
- Date: Wed, 30 Dec 1992 22:02:34 GMT
- Lines: 32
-
- In article <670@funsys.funsys.se> jgs@funsys.funsys.se (Jan Gifvars) writes:
- >
- >Hello !
- >
- >Is it possible to parse the command line when you start a ParcPlace image.
- >Example:
- >
- > $ st80 myImage.im argument1 argument2
- >
- >or will the virtual machine throw them away ?
- >
- >Thank you in advance !
- >
- >Jan Gifvars
- >ENATOR Functional Systems AB
- >Sweden
- >jgs@funsys.se
- >
- >
- See the sections of your documentation on User Defined Functions.
- In such a function written in C you can do command line retrieval and
- processing much as in any other C function that makes the appropriate system
- call to retrieve this info. Getting it to execute when you want it to is
- doable by having some method execute the UDF created at the time you want it
- to execute. If you want it before anything else happens practically in bringing
- up the image even this is possible although I don't remember at the moment
- where I used to put things that I wanted executed that early.
-
- Samantha Atkins
- Object Enterprises
- samantha@shell.portal.com
-
-