[SLE] Re: Testing using Bash for an unknown extension

From: Sean Rima (sean_at_tcob1.net)
Date: 11/30/03

  • Next message: Jerry Feldman: "Re: [SLE] Re: defrag for linux-answered at TLDP"
    To: suse-linux-e@suse.com
    Date: Sun, 30 Nov 2003 15:31:39 +0000
    
    
    

    Vic Ayres writes:

    > Sean Rima wrote:
    >> I am trying to test to see if a file exsides but the extension changes
    >> all the time, ie
    >>
    >> ab251455.001
    >> ab251455.002
    >>
    >> if I do a :
    >> if [ -e /var/max/spool/inbound/ab251455.* ] ; then
    >> run_command
    >> fi
    >>
    >> the run_command never runs
    >>
    >
    > That's strange. I tried with
    > #!/bin/bash
    > if [ -e ab123.* ] ; then
    > echo "It exists"
    > fi
    > and it works perfectly. Is run_command in the path?
    >

    It is, but I noticed that you didn't include a path, maybe that is why mine
    is failing, will experiment.

    Sean

    
    



  • Next message: Jerry Feldman: "Re: [SLE] Re: defrag for linux-answered at TLDP"

    Relevant Pages