Package abstrasy.privates

Examples of abstrasy.privates.Private_Execute


    }

    public Node external_execute(Node startAt) throws Exception {
        startAt.isGoodArgsLength(true, 2);
        String command = startAt.getSubNode(1, Node.TYPE_STRING).getString();
        Private_Execute pexec = new Private_Execute(command);
        int res = pexec.exec();
        Node rnode = Node.createHash();
        Hash hash=rnode.getHash();
        hash.store(Node.createQSymbol("result-code"), new Node(res));
        hash.store(Node.createQSymbol("output"), new Node(pexec.getOutput()));
        hash.store(Node.createQSymbol("error"), new Node(pexec.getError()));
        return rnode;
    }
View Full Code Here


        startAt.isGoodArgsLength(true, 2);
        SELF.require_SELF_mutable();
        command = startAt.getSubNode(1, Node.TYPE_STRING).getString();
        inUse=true;
        exitCode=-1;
        proc = new Private_Execute();
        proc.setCommand(command);
        proc.setPWD(pwd);
        proc.popen();

        External_File eofile = new External_File();
View Full Code Here

TOP

Related Classes of abstrasy.privates.Private_Execute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.