Check if a program is installed on a linux machine from a java applet
location: linuxexchange.com - date: January 1, 1970
Hi I need to be able to check if a certain software is installed on the clients computer and where, in order to launch it. I found the following three posts as to how to do so on Windows and Mac but I can't seem to figure it out for Linux as there is no registry. Does any one know how this can be done on Linux?
Similar posts for Windows and Mac:
Can a Java applet open a "select directory" and write to a filesystem via JavaScript interaction?
read/write to Windows Registry using Java
How can I see the software installed in a Mac OS using a java application?
any help would be greatly appreciated :)
Hi all , I need to remotely shutdown a linux machine from a windows machine through java program [closed]
location: linuxexchange.com - date: May 1, 2013
I need to remotely shutdown a linux machine from a windows server machine through java program . Is there any direct command to do that.
how to run linux command from java program?
location: linuxquestions.com - date: November 10, 2004
hi friendz,
i wrote a java program in which is creating a file using the "File" class.... but after creating it i want to change the permissions of tht file.......i.e. i want to run "chmod" command from java.... does any pone know how to do it? or is there any other way to do it using File class or some other class?.....
bye....
How can I run an OpenGL application installed on a linux machine from my windows machine?
location: linuxexchange.com - date: September 8, 2010
In the spirit of being helpful, this is a problem I had and solved, so I will answer the question here.
Problem
I have:
An application that has to be installed on on Redhat or SuSE enterprise.
It has huge system requirements and requires OpenGL.
It is part of a suite of tools that need to operate together on one machine.
This application is used for a time intensive task in terms of man hours.
I don't want to sit in the server room working on this application.
So, the question came up... how do I run this application from a remote windows machine?
I'll outline my solution. Feel free to comment on alternatives. This solution should work for simpler environments as well. My case is somewhat extreme.
Run linux command in remote machine from java
location: linuxexchange.com - date: January 1, 1970
I´m working with application in java.
I can execute linux command (bash) on my machine host, but i want to execute this command in a remote machine like ssh.
I´m ussing this code
Process process = Runtime.getRuntime().exec(script);
process = Runtime.getRuntime().exec(script);
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
System.out.println(line);
}
How i can execute linux shell in remote machine with java code?
How to access external hard disk mounted to Linux machine from Windows
location: ubuntuforums.com - date: May 28, 2010
Hello,
I have Ubuntu Lucid Lynx in one machine and Windows XP in another machine.
I have connected both machines using Samba.
I have an external hard disk connected to the Linux machine ( /media/MyBook)
I want to share a directory (/media/MyBook/NewData)in the external hard disk so that a user logged in t to the Windows machine can use that directory ( /media/MyBook/NewData) to do his/her analysis.
Thank you
super easy to reboot the linux machine from the command line
location: ubuntuforums.com - date: December 9, 2013
>sudo reboot
I was impress knowing this command because it is better than using >sudo shutdown -h now and pressing the power button to start the machine back up.
I can see a rude little joke in saying use >sudo shutdown -h now to reboot your machine and the user cannot turn it back on so they just have to drop using a computer all together.
How to find disk space of remote linux machine using Java [duplicate]
location: linuxexchange.com - date: October 16, 2014
This question already has an answer here:
How to find how much disk space is left using Java?
5 answers
Flushing linux DNS from JAVA
location: linuxexchange.com - date: August 6, 2013
We have a RC module that gets dropped into our cloud servers during hot deployment. To that end, I need a way to flush the DNS programmatically from within JAVA. The best solution that I can think of is to just have java fire an external shell script, however I'm not having any luck. I've tried the "normal" procedures to an avail:
1) restarting nscd service (not installed in these servers)
2) /etc/init.d/networking restart (no effect)
3) /etc/init.d/dns-clean start (no effect)
Anyone have any more suggestions?
(NOTE: this is a re-word of a previous post that must have been determined as being "non-development" related...)
TIA
Find name of linux distro from java
location: linuxexchange.com - date: May 1, 2012
We are writing a small library in java that needs to collect information from the underlying system. We are able to read most of the stuff from system properties in java, but we cannot seem to find the right way to extract the name of the distro when run on linux. The call
System.getProperty("os.name");
return "Linux" (which we also collect) but we are looking for a way to get e.g. "Ubuntu" as well. We need this solution in java and would like to not have to do some /etc/release parsing
please wait...
Page: 1 2 3 4 5 6 7 8 9 10