Re: execute function

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <003f01c3db8b$3d7dfd70$764000b4@kardis>
Slush commands are not executables, they are classes that are part of the
slush application.  As such, they cannot be accessed from other processes or
executed in this manner.

Kris

----- Original Message -----
From: "Nuno Leitão" <[email protected]>
To: "'Tini List'" <tini-6tN4nzCoH/[email protected]>
Sent: Thursday, January 15, 2004 9:48 AM
Subject: [TINI]execute function



Hi,

Does anyone now how to work the execute function??
Or does anyone now why the code

    com.dalsemi.system.TINIOS.execute(new Object[] {"help","java"},
                new
com.dalsemi.shell.server.SystemInputStream(System.in,System.out),
                new
com.dalsemi.shell.server.SystemPrintStream(System.out),
                new
com.dalsemi.shell.server.SystemPrintStream(System.out),
                com.dalsemi.system.TINIOS.getCurrentEnvironment());



or


   Object[] exec = {"help","java"};

    com.dalsemi.shell.DefaultTINIShell tShell =new
com.dalsemi.shell.DefaultTINIShell();

    tShell.login("root","tini"));

    tShell.execute(exec, new
com.dalsemi.shell.server.SystemInputStream(System.in,System.out),
                new
com.dalsemi.shell.server.SystemPrintStream(System.out),
                new
com.dalsemi.shell.server.SystemPrintStream(System.out),
                tShell.getCurrentEnvironment());

    tShell.logout("Bye");


Always reply "Command not found"?

Thanks,

..........................................................
....................................
Nuno Leitão                    Tel. 351 218 314 337
Datelka - Engenharia e Sistemas, Lda. Fax  351 218 314 339
Av. Infante D. Henrique 328 - 1º G E-mail: [email protected]
1800-223 Lisboa - Portugal Internet: www.datelka.pt

_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini



_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.