Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!in-news.erinet.com!bug.rahul.net!rahul.net!a2i!ns2.mainstreet.net!ns1.aplatform.com!news.aimnet.com!aimnet!not-for-mail From: trh@aimnet.com (TRH TRH) Newsgroups: comp.unix.bsd.bsdi.misc,comp.unix.bsd.misc,comp.unix.bsd.freebsd.misc Subject: Re: Q: How to create executable files? Date: 5 May 1996 17:27:07 GMT Organization: Aimnet Information Services Lines: 45 Message-ID: <4miodb$m9g@news.aimnet.com> References: <4mg599$clu@news.aimnet.com> <4mgm2j$g1t@PaperBoy.LiveNet.Net> <4mh10c$dfd@mark.ucdavis.edu> NNTP-Posting-Host: aimnet.aimnet.com X-Newsreader: TIN [UNIX 1.3 950824BETA PL0] Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:3665 comp.unix.bsd.misc:911 comp.unix.bsd.freebsd.misc:18753 Gregory Shenaut (fzshenau@bullwinkle.ucdavis.edu) wrote: : Jim Sloan (jsloan@LiveNet.Net) wrote: Thanks for all the help, "." was not in the path! Now I have another problem: My single line macro works. But when I start adding lines for other things I want it to do, it stops passing the parameter from terminal input! Here is my actual macro: (The key element "src/msmtp9 $1 t-l aimnet.aimnet.com mailhub.aimnet.com" works fine by itself in an executable fine... And the whole thing works on SunOS and AIX) #!/bin/csh -f if ( -e "t-l/$1" ) then src/msmtp9 $1 t-l aimnet.aimnet.com mailhub.aimnet.com rm t-l/$1.ssdomain rm t-l/$1.tout rm t-l/$1.running elm -s $1.notsent trh < t-l/$1.notsent rm t-l/$1.notsent rm gec$1 else if ( -e "tt-l/$1" ) then src/msmtp9 $1 tt-l aimnet.aimnet.com mailhub.aimnet.com rm tt-l/$1.ssdomain rm tt-l/$1.tout rm tt-l/$1.running elm -s $1.notsent trh < tt-l/$1.notsent rm tt-l/$1.notsent rm gec$1 else echo "$1 does not exist!" endif