shell script strangeness...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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 happy?

Thanks

Craig

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux