Skip to content

exec() problem #71

Description

@vbutaev

need your help again please: why this code doesn't work? in routerOS terminal is everything fine

try {
	$util->exec(
	    '
	:foreach v in=[find list="test"] do={
	    :do {
	        remove=$v;
	    } on-error={
	        :error ("failed to remove " . $v);
	    };
	};
	    '
	);
} catch (RouerOS\RouterErrorException $e) {

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions