Re: [CentOS] shell script strangeness...

2008-05-16 Thread Ian Blackwell
Craig White wrote: That works fine one CentOS 5 (double quotes and backtics) but not on CentOS 4.6 Thanks...I guess it's good enough for now. Craig ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos I can

Re: [CentOS] shell script strangeness...

2008-05-16 Thread Craig White
On Fri, 2008-05-16 at 17:03 +0930, Ian Blackwell wrote: Craig White wrote: That works fine one CentOS 5 (double quotes and backtics) but not on CentOS 4.6 Thanks...I guess it's good enough for now. Craig ___ CentOS mailing list

[CentOS] shell script strangeness...

2008-05-15 Thread Craig White
On my CentOS 4.6 server, this works... if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ] On my CentOS 5.1 server, this gives me the following error... ./test_file.scr: line 3: [: too many arguments Can anyone explain why the difference and suggest something that makes both cases

Re: [CentOS] shell script strangeness...

2008-05-15 Thread Ian Blackwell
Craig White wrote: On my CentOS 4.6 server, this works... if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ] On my CentOS 5.1 server, this gives me the following error... ./test_file.scr: line 3: [: too many arguments Can anyone explain why the difference and suggest something that

Re: [CentOS] shell script strangeness...

2008-05-15 Thread Garrick Staples
On Fri, May 16, 2008 at 02:07:10PM +0930, Ian Blackwell alleged: Craig White wrote: On my CentOS 4.6 server, this works... if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ] On my CentOS 5.1 server, this gives me the following error... ./test_file.scr: line 3: [: too many

Re: [CentOS] shell script strangeness...

2008-05-15 Thread Craig White
On Fri, 2008-05-16 at 14:07 +0930, Ian Blackwell wrote: Craig White wrote: On my CentOS 4.6 server, this works... if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ] On my CentOS 5.1 server, this gives me the following error... ./test_file.scr: line 3: [: too many arguments

Re: [CentOS] shell script strangeness...

2008-05-15 Thread Craig White
On Thu, 2008-05-15 at 22:00 -0700, Garrick Staples wrote: On Fri, May 16, 2008 at 02:07:10PM +0930, Ian Blackwell alleged: Craig White wrote: On my CentOS 4.6 server, this works... if [ -z `grep entry_chooser.js /var/log/httpd/access_log` ] On my CentOS 5.1 server, this gives me the