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
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
* 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.
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