[SLE] Re: Testing using Bash for an unknown extension
From: Sean Rima (sean_at_tcob1.net)
Date: 11/30/03
- Previous message: Jerry Feldman: "Re: [SLE] Testing using Bash for an unknown extension"
- In reply to: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Next in thread: 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:53:21 +0000
Patrick Shanahan writes:
>> >>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.
>
> Then you will have to start the script in the directory that the
> subject file resides.
>
> Have you checked to see if you have read/write access (permission) for
> the directory where ab251455.00? resides?
>
> You might also substitute 'echo "It exists"' for 'run_command' to try to
> isolate the problem to 'run_command' or '[ -e .... ]'.
I will try these as well as cd'ing to the directory that the files are in
first.
Sean
- application/pgp-signature attachment: stored
- Previous message: Jerry Feldman: "Re: [SLE] Testing using Bash for an unknown extension"
- In reply to: Patrick Shanahan: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Next in thread: Vic Ayres: "Re: [SLE] Re: Testing using Bash for an unknown extension"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]