home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!elroy.jpl.nasa.gov!jato!mona!mlei
- From: mlei@mona.jpl.nasa.gov (Mary Lei)
- Subject: function with cshell script
- Message-ID: <1992Jul30.223420.20253@jato.jpl.nasa.gov>
- Sender: nobody@jato.jpl.nasa.gov
- Nntp-Posting-Host: mona.jpl.nasa.gov
- Organization: jpl
- Distribution: JPL
- Date: Thu, 30 Jul 1992 22:34:20 GMT
- Lines: 21
-
- Does any one have an example of how to define a function within a cshell script, like in this borne shell example:
-
- #! /bin/sh
- clean_up()
- {
- [ -f $$ftp.script ] && rm -f $$ftp.script
- [ -f $$msg ] && rm -f $$msg
-
- echo ""
- echo "Please select the \"CONTINUE\" button to continue!"
- cd $opwd
- }
-
- #main line
- clean_up
- ...
-
- _____________________________
- Please email me mlei@gina
- Thanks.
- I am running under SUN OS 4.1.1
-