help with ed

  • sas

    sas - 2010-03-29

    I want to update those task elements with an attribute of id whose value is validate-Mgr.  The thing I want to update is the attribute ignore-stderr of the element commandline.

    I tried  xml ed -u  '//task/execute/commandline' -v false

    A sample file I created is below

    <?xml version='1.0'?>   

    <?xml-stylesheet type="text/xsl" href="tests.xsl"?>

    <!DOCTYPE tasks PUBLIC '-//Somewhere//DTD ATOMS 1.0//EN' ''>
    <tasks title="FullStackTest" debug="on" alllogical="true">

        <task id="validate-Mgr" basedir="utilities/fish" account="master">
                <on map-results-to-variable="OUT" ref="GetMgrDetails"/>
            <import name="SRC" basedir="testcases/9302/161"/>
            <commandline ignore-stderr="true">$BIN/ $OUT/stdout.txt $SRC/rabConf.conf</commandline>          
        <task id="mgen_iwf" basedir="utilities/mgen_scripts" account="iwfserver">
                <on ref="connect_calls" type="start-after-end" delay="1"/>
                <execute timeout="150">
                 <commandline ignore-stderr="true">$BIN/ $RESOURCE_SET_NAME port 9066-9070 output $RESULTS_DIR/9302_161_ul.drc </commandline>

  • sas

    sas - 2010-03-30

    OK, I figured it out myself.

    xml ed -P -t -u "//task/execute/commandline/@ignore-stderr" -v "false"



Log in to post a comment.