Re: BASH scripting for a mouse

2003-06-14 Thread Cameron Simpson
On 10:55 13 Jun 2003, David Kramer <[EMAIL PROTECTED]> wrote: | On Friday 13 June 2003 04:40 am, Matthew Richards wrote: [...] | > but I do not know how to determine if the string "serial" exists in the | variable SMOUSE in terms of the 'if' statement. | | The answer is you don't. | | If you

Re: BASH scripting for a mouse

2003-06-13 Thread David Kramer
On Friday 13 June 2003 04:40 am, Matthew Richards wrote: > Hello, > > I am writing a script to determine if a serial mouse is connected to the local system. So far I have: > > #!/bin/bash > SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) > if [ $SMOUSE = "" ]; then >echo "There is not a

Re: BASH scripting for a mouse

2003-06-13 Thread Jon Haugsand
* Matthew Richards > Hello, > > I am writing a script to determine if a serial mouse is connected to the local > system. So far I have: > > #!/bin/bash > SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) > if [ $SMOUSE = "" ]; then >echo "There is not a serial mouse attached to this system.

BASH scripting for a mouse

2003-06-13 Thread Matthew Richards
Hello, I am writing a script to determine if a serial mouse is connected to the local system. So far I have: #!/bin/bash SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) if [ $SMOUSE = "" ]; then echo "There is not a serial mouse attached to this system." else echo "A serial mouse is a