John H Darrah <[EMAIL PROTECTED]> writes:
> On Thu, 15 Feb 2001, Jonathan Wilson wrote:
>
>
> > if [ "$1" != *.src.rpm ] && [ "$1" != *.srpm ]
>
> I didn't notice the above line in my previous post.
> Unfortunatly, the file globing is expanding to multiple
> arguments.
>
> You will have to u
Hey, cool!
The line if [ ! -z "${1##*.src.rpm}" ] && [ ! -z "${1##*.srpm}" ] works perfect, and
it got rid of the echoing "Terminated" too!
Thanks a ton dude :-)
At 03:17 PM 2/15/2001 -0800, you wrote:
>On Thu, 15 Feb 2001, Jonathan Wilson wrote:
>
>
>> if [ "$1" != *.src.rpm ] && [ "$1" !=
On Thu, 15 Feb 2001, Jonathan Wilson wrote:
> if [ "$1" != *.src.rpm ] && [ "$1" != *.srpm ]
I didn't notice the above line in my previous post.
Unfortunatly, the file globing is expanding to multiple
arguments.
You will have to use a `case' statement or other trickery.
Maybe like this:
i
In addition, I find now that it's not performing the tests anymore. As per this
example:
[root@csc003 SrcRpms]# ~/Scripts/srpm_arch_tester.sh ladeda
/root/Scripts/srpm_arch_tester.sh: [: too many arguments
i386 failed
i486 failed
i586 failed
i686 failed
athlon failed
test done
Terminated
Thou
Still no-go. Same exact message. I tried stracing it but it's didn't really tell me
anything. I also tried -noprofile, thinking that it might be the bashrc that was
different. It didn't care.
Here's the current version:
#!/bin/bash -noprofile
#srpm_arch_tester.sh
trap 'kill 0' 0 1 2 3
if [ -
On Thu, 15 Feb 2001, Todd A. Jacobs wrote:
> On Thu, 15 Feb 2001, John H Darrah wrote:
>
> > To answer your last question, "kill 0" is equivalent to
> > "kill -15 -0".
>
> This isn't a valid command. There's no signal 0 (run "kill -l" for proof),
> and no PID 0, either. What exactly is this sup
On Thu, 15 Feb 2001, John H Darrah wrote:
> To answer your last question, "kill 0" is equivalent to
> "kill -15 -0".
This isn't a valid command. There's no signal 0 (run "kill -l" for proof),
and no PID 0, either. What exactly is this supposed to accomplish?
--
Todd A. Jacobs
CodeGnome Consult
On Thu, 15 Feb 2001, Jonathan Wilson wrote:
> /root/Scripts/srpm_arch_tester.sh: [: too many arguments
> Terminated
>
>
> #!/bin/bash
> #srpm_arch_tester.sh
>
> trap 'kill 0' 0 1 2 3
>
> if [ -z $1 ]
> then
Quote your variables with double quotes like the
following:
if [ -z "$1" ]
John,
Thanks so much for helping, that really worked!
Now I have a stranger problem:
I developed this script on a RH 6.2 server and it works fine, but when O move it to
another RH 6.2 server and try to run it, I get the following error:
[root@csc003 SrcRpms]# ~/Scripts/srpm_arch_tester.sh glib
On Wed, 14 Feb 2001, rpjday wrote:
> > >Try:
> > >trap 'kill 0' 0 1 2 3
> > >
> > >This should cleanup all the children.
>
> huh? i understand all of the above except for the "kill
> 0" command. what does it mean to say "kill 0"? what
> signal is being sent to what, exactly?
To ans
On Wed, 14 Feb 2001, rpjday wrote:
> > >
> > >Try:
> > >trap 'kill 0' 0 1 2 3
> > >
> > >This should cleanup all the children.
>
> huh? i understand all of the above except for the "kill
> 0" command. what does it mean to say "kill 0"? what
> signal is being sent to what, exactly?
S
On Mon, 12 Feb 2001, Jonathan Wilson wrote:
> At 08:25 PM 2/10/2001 -0800, you wrote:
> >
> >Try:
> >
> >trap 'kill 0' 0 1 2 3
> >
> >This should cleanup all the children.
>
> Do I then need to change "function cleanup ()" to
> "function kill 0 ()" ? Can it be two words like that? or
> i
On Mon, 12 Feb 2001, Jonathan Wilson wrote:
> At 08:25 PM 2/10/2001 -0800, you wrote:
> >On Sat, 10 Feb 2001, Jonathan Wilson wrote:
> >
> >> I wonder if someone could help with a script I'm trying to
> >> write. What this script does is rebuild a src.rpm in
> >> every possible architecture, and
At 08:25 PM 2/10/2001 -0800, you wrote:
>On Sat, 10 Feb 2001, Jonathan Wilson wrote:
>
>> I wonder if someone could help with a script I'm trying to
>> write. What this script does is rebuild a src.rpm in
>> every possible architecture, and report if it's successful
>> or not, as well as log the
On Sat, 10 Feb 2001, Jonathan Wilson wrote:
> I wonder if someone could help with a script I'm trying to
> write. What this script does is rebuild a src.rpm in
> every possible architecture, and report if it's successful
> or not, as well as log the output. While writing it I
> discovered that
Howdy,
I wonder if someone could help with a script I'm trying to write.
What this script does is rebuild a src.rpm in every possible architecture, and report
if it's successful or not, as well as log the output.
While writing it I discovered that hitting ^C gave my the prompt back, but didn't
16 matches
Mail list logo