You're welcome! Please give me feedback, if it works or if there are difficulties. Thank you!
cytux- "Anyway it is now possible to control the whole linux from java."
This is awesome, thanks!!! I'm going to try it out right now!!!
You're welcome! Please give me feedback, if it works or if there are difficulties. Thank you!
% New UNIX password:
> penis
BAD PASSWORD: it's WAY too short
% New UNIX password:
% New UNIX password:
> penis
BAD PASSWORD: it's WAY too short
% New UNIX password:
@cytux:
I have been playing around with the app and browsing your source (have not yet grabbed v4.1) and this stuff is great!!! what a great way to learn java and bash scripting at the same time!!
I did notice that your rms.java file now has a loadres function that uses getResourceAsStream to grab the shell exec output. Where is this function defined? can a similar thing be done w/ an "OutputStream" and/or what kinds of "Resources" can we use for streaming? and as always, thanks!!
Thank you - I'm very happy that you find it useful!
I grabbed the infos about getResourceAsStream from here and there in the web. Here is one example:
http://mindprod.com/jgloss/getresourceasstream.html
No, it's not possible to write the same way, because of java security concerns. If this would be possible, an app could destroy everything. Because of this restriction I used the recordstore method for writing. There is a specific rms header but if you look at the demon it's no problem to cut the stuff out and the content is clearly readable.
If u like to write to any other location you may extend the java code. For example write another recordstore and a bash script which will move it to anywhere in the filesystem.
You may also write huge bash scripts and call them. This will work.
There is already Cy4th 0.4.1a out where only the demon was changed a little bit to delete the "cache commands".
% New UNIX password:
> penis
BAD PASSWORD: it's WAY too short
% New UNIX password: