[SLE] Re: Testing using Bash for an unknown extension
From: Sean Rima (sean_at_tcob1.net)
Date: 11/30/03
- Previous message: Vic Ayres: "Re: [SLE] Testing using Bash for an unknown extension"
- In reply to: Vic Ayres: "Re: [SLE] Testing using Bash for an unknown extension"
- Next in thread: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Reply: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Reply: Vic Ayres: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- application/pgp-signature attachment: stored
- Previous message: Vic Ayres: "Re: [SLE] Testing using Bash for an unknown extension"
- In reply to: Vic Ayres: "Re: [SLE] Testing using Bash for an unknown extension"
- Next in thread: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Reply: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Reply: Vic Ayres: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|