EasyCwmp - easycwmp
View Issue Details
0000016easycwmp[All Projects] Questionpublic2014-10-09 01:482014-10-10 16:47
hlee 
Anis 
noneminoralways
resolvedfixed 
openWRT - AALinux2.6.36
0000016: in script /usr/sbin/easycwmp
the script seems always in the while loop:

        while read CMD; do
            [ -z "$CMD" ] && continue
            json_get_opt "$CMD"
            handle_action
        done

because CMD was not defined. Where did CMD get defined?

Thanks.
No tags attached.
Issue History
2014-10-09 01:48hleeNew Issue
2014-10-09 09:31mohamed.kallelNote Added: 0000074
2014-10-09 09:31mohamed.kallelPriorityhigh => none
2014-10-09 09:31mohamed.kallelSeveritymajor => minor
2014-10-10 16:47AnisStatusnew => resolved
2014-10-10 16:47AnisResolutionopen => fixed
2014-10-10 16:47AnisAssigned To => Anis

Notes
(0000074)
mohamed.kallel   
2014-10-09 09:31   
CMD is got from

     while read CMD; do

it's got from stdin. and in C we make a pipe to the stdin in order to send data (commands) to the script