[lug] bash script functions

Jason Davis jd_480 at hotmail.com
Tue Nov 6 13:01:53 MST 2001

<br><br><br>  Jason Davis
   jd_480 at hotmail.com

ok, isee now...however when i try to call function in non subshell form it 
gives me errors...so i just added a echo
function GETZIP
        #######gets the zip asshole what do you think
        if [ -f "/home/students/jace/d/nightlyzips/*.ZIP" ];then
                echo "Getting Last Nights Zip"
                mv /home/students/jace/D/myob/nightlyzips/*.ZIP 
                echo "echo Zip Is Archived to JSERV"
                echo "echo No New Zip To Archive"

works perfect now!!
thanks alot

>// script parts elided
> > > $(ROTATE)
> > > $(GETZIP)
>why are you executing these in a subshell? Shouldn't this just be:
>Ken Weinert   kenw at ihs.com 303-858-6956 (V) 303-705-4258 (F)
>GnuPG KeyID: 9274F1CE           GnuPG available at http://www.gnupg.org/
>GnuPG Key Fingerprint: 1D87 3720 BB77 4489 A928  79D6 F8EC DD76 9274 F1CE
>Linux 2.2.14: up 3 days, 20:46,
>I don't know HOW, but somehow I got poison ivy on my brain.  The only
>way I can scratch it is to think about sandpaper. - Steven Wright
><< attach3 >>

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

More information about the LUG mailing list