Search:

Type: Posts; User: thache; Keyword(s):

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    349

    [SOLVED] Re: Shell script always runs Condition 2

    It works! Thank you. This is my first time writing a shell script.
  2. Replies
    3
    Views
    349

    [SOLVED] Shell script always runs Condition 2

    I've been try trying to get this script to work. Basically I'm trying to get condition 1 to pass but never will becasuse of:



    #!/bin/sh
    ONOFF='sed -n p1 ~/servoonoff.txt';
    if ['$ONOFF'='on'];...
Results 1 to 2 of 2