Programming :: Java Program Sshing To Server?

Aug 12, 2010

I am trying to write a java program and eventually a web app to do the following.1. get the server name, username, password from the user and ssh to the linux box.2. goto a folder, open a script file (the file has different function calls, I need to comment all other function calls and just un-comment the one I want to use)

#call_1
call_2
#call_3

[code]....

View 1 Replies


ADVERTISEMENT

Programming :: Debug Remotely A Java Program With Ddd?

Jun 4, 2011

Is it possible to debug remotely a java program with ddd (data display debugger)?

View 2 Replies View Related

Programming :: Java Program To Display All IP Addresses In LAN?

Feb 25, 2011

I Want to Develop Network Scanner Software. For that i need "Java Program to Display All IP Addresses in LAN".

View 3 Replies View Related

Programming :: Restart The Program Execution - Java

May 3, 2011

In gui validation if user enters string in integer requiring field, a dialog box pops out. So on clicking the button i want to stop the program execution and return to the previous jframe(either the same one or newly created object of it).

How can i handle this in java.
I tried calling main(); but it doesn't work.
Also System.exit(0); doensn't work.

View 1 Replies View Related

Programming :: Encryption And Decryption Program In Java And Using RSA Algorithm?

Feb 25, 2011

i need a program for Encryption and Decryption using RSA algorithm in JAVA ..

View 9 Replies View Related

Programming :: Small Java Program To Manage 2 Apartments?

Feb 17, 2011

this is my first post and I would like to get some help from you , so what should be the answer for this question ?:::::::::::::the question::::::::::::::::THE UNIVERSITY APARTMENTSThe University Apartments provides apartment rental to university students at affordable rates, with optional facilities:Apartment Type A, 2 bedrooms and equiped with kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM300.Apartment Type B, 3 bedrooms includes one master bedroom with attached bathroom but does not have kitchen and laundry facilities. The monthly rental for the rooms in this apartment type is RM200 and students staying in the master bedroom will be paying an additional 40%.

Each apartment may house a maximum of 3 students. Students are required to check out from the apartment unit when the current semester ends.Create an application to manage the university apartments rental:1. Register new student and assign apartment moduleRegister and assigns an apartment to the student for 140 days from the date of registration. The module should retrieve the date automatically from the system clock and calculates the expiry date for the apartment rental. Before an apartment is assigned, the system should allow the selection of the type of apartment (i.e. Type A or B), then check for the number of occupants in the apartment. If the apartment already housed 3 students, it should recommend another apartment unit that is still available. Upon registration, student should pay a RM100 for the utility charges, rental deposit for one month and the rental for the current month.

2. Update apartment status moduleWhen a student moves out from an apartment, the apartment status is updated.3. Reporting moduleGenerates a report of apartments with full occupancy and another report for apartments where rooms are still available. 4. Search module Enable the administrator to search for a student's apartment unit using the student id as the search key. The search result should produce the student�s information and the details of the apartment that the student is staying in.The application should be developed using object-oriented concepts using Student class and Apartment class, implementing the appropriate data fields and methods for the classes. Data may be stored in collections i.e

View 10 Replies View Related

Programming :: Where To Download To Learn / Program Java For System?

Oct 5, 2009

I went to the sun website but all I see are upgrades to JDK 6, I dont see where to download the actual JDK.

Anyone know where I can download the JDK for Linux?

View 9 Replies View Related

Debian Programming :: Memory Usage When Running Java Program

Jun 28, 2013

I have a java program that runs on Debian as a background processor. Yesterday the Java program stopped running. I looked at the memory usage, the system only had 5MB memory left, so my guess is that the java program ran out of memory to use.

However, after we restarted the java program, we could see that the free memory count started to go up. It kept going up from 5MB to over 400MB. The increase of memory happened slowly, when I measured it, I could see that with each minute passing by, there were a bit more memory added into the free memory pool, and meanwhile, the java background process was running.

I wonder why this would ever happen. It's as if our java program first brought the machine done because it consumed all the memories, then after restart, it starts to give back memories.

View 2 Replies View Related

Programming :: Java Program To Display IP Address And Host Names In Wireless?

Feb 25, 2011

"Java Program to Display IP Address and Host Names in Wireless".

View 7 Replies View Related

Programming :: Using Java Runtime - Program Which Simply Calculates The Load Average Of A Process

Feb 10, 2011

I'm new to the linux world and its been quit sometime since i've done any programming. However, I'm writing a program which simply calculates the load average of a process. In doing this I need to use the uptime command for linux in a java program. I've done a little bit of searching on the net and it mentions this is possiable by using java runtime command. Unfortunatly though I have yet to find a working example of this. I've tried just simply reading the /proc/uptime file but I have no clue how to format the 2 numbers in seconds to make it the same as if you just typed in uptime in the linux command prompt.

View 2 Replies View Related

CentOS 5 Server :: Implementing A Java Program As A Service?

Jul 23, 2009

I've a java program which needs to be executed regardless of whether a user is logged in or not. Currently I've a shell script which executes the java program. I login to the server and run this shell script when the server is rebooted. I would like to start this script automatically preferably as a service so that I can stop and restart this service whenever I update the java program.

View 3 Replies View Related

Programming :: Java Servlets: Setup The Server Side Configuration On Fedora Web Server?

Jan 4, 2010

If you hadn't guessed it from my last 3000(ish) java-related posts, I'm a Java n00b writing a Java Applet for a work project. I got to the part was I was about to write the applet code that would send HTTP requests to my CGI scripts. But I read some paragraphs in a book praising Java servlets as better that CGI because they are easier to use and give much better performance server side. My server load isn't very big, though, and I was wondering if it would be worth taking the time to learn about Java servlets and how to set up the server side configuration on my Fedora web server.

View 3 Replies View Related

General :: Connect A Jsp Program With A Java Program?

Apr 30, 2010

I have a jsp code. After executing that code, a Java program should be executed without refreshing the page. that is, my first page is a login page which is in jsp. After logging in the next page must be displayed which is a Java code. is that possible? Can we use applet for that?

View 1 Replies View Related

Programming :: Java.net.SocketException: Malformed Reply From SOCKS Server?

Jun 22, 2011

am getting an error "java.net.SocketException: Malformed reply from SOCKS server" when trying to create a socket to an ip.but when i use localhost,its working fine

Error
Socket skt=new Socket("192.168.1.18",4000);
working
Socket skt=new Socket("localhost",4000);

View 1 Replies View Related

Networking :: Permission / Group After Sshing Into Box

Nov 4, 2010

I've got a problem with groups on linux (slackware). I'm trying to ssh from one computer into another to do some work, but I'm running into permission issues.

If I do the work locally as a user
If I do the work with ssh as root
If I do the work with ssh as a user ;(

Both computers are mine. (By locally, I mean physically sitting by that computer logging in the normal way.) When I log in locally as a regular user I'm a member of the following groups: 'users floppy audio video cdrom' But when I ssh into the same computer, being the same user, I'm only a member of the group: 'users'

Q1. What gives? Where/How can I change this?

Q2. Also, where do linux/slackware store the group information? According to /etc/group I'm only member of 'users'. Where does it keep the info that I belong to 'users floppy audio video cdrom'?

View 2 Replies View Related

General :: Sshing To Box1 Takes To Box2

Feb 3, 2011

I am experiencing a weird situation. When I ssh to, let us call it, box1 with a public IP, I end up sshing to box2 with a private IP. Both boxes can see each other since they have private IPs in the same network in the eth1 interface.

I don't know if this is good information to get anyone of you started with any feedback. If you need any other info that I am missing at the moment

Both boxes are running Centos 5.5

View 4 Replies View Related

Programming :: Timings Of A Program That Uses 1-8 Threads On A Server That Has 4 D?

Jul 25, 2010

I am runig a program on a server at my university that has 4 Dual-Core AMD Opteron(tm) Processor 2210 HE and the O.S. is Linux version 2.6.27.25-78.2.56.fc9.x86_64. My program implements Conways Game of Life and it runs using pthreads and openmp. I timed the parrallel part of the program using the getimeofday() function using 1-8 threads. But the timings don't seem right. I get the biggest time using 1 thread(as expected), then the time gets smaller. But the smallest time i get is when i use 4 threads.

Here is an example when i use an array 1000x1000.

Using 1 thread~9,62 sec, Using 2 Threads~4,73 sec, Using 3 ~ 3.64 sec, Using 4~2.99 sec, Using 5 ~4,19 sec, Using 6~3.84, Using 7~3.34, Using 8~3.12.The above timings are when i use pthreads. When i use openmp the timing are smaller but follow the same pattern.I expected that the time would decrease from 1-8 because of the 4 Dual core cpus? I thought that because there are 4 cpus with 2 cores each, 8 threads could run at the same time. Does it have to do with the operating system that the server runs?

Also i tested the same programs on another server that has 7 Dual-Core AMD Opteron(tm) Processor 8214 and runs Linux version 2.6.18-194.3.1.el5. There the timings i get are what i expected. The timings get smaller starting from 1(the biggest) to 8(smallest excecution time).The program implements the Game of Life correct, both using pthreads and openmp, i just cant figure out why the timings are like the example i posted. So in conclusion, my questions are:

1) The number of threads that can run at the same time on a system depends by the cores of the cpus?it depends only by the cpus although each cpu has more than one cores? It depends by all the previous and the Operating System?

2) Does it have to do with the way i divide the 1000x1000 array to the number of threads? But if i did then the openmp code wouldn't give the same pattern of timings?

3)What is the reason i might get such timmings?

View 4 Replies View Related

Programming :: Execute C Program Through HTML On HTTP Web Server?

Oct 15, 2009

I would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.

View 2 Replies View Related

Programming :: Connection Refused In Client Server Program

Oct 23, 2010

I wrote a simple client server socket program in C.

View 1 Replies View Related

Programming :: Create A Screen Capture Program With Xvfb Server?

Jan 4, 2010

I am trying to create a screen capture program with Xvfb server, ImageMagick and Khtml2PNG. I seem to be having some issues and was hoping someone could help me out. I have everything installed and working on a centos WHM/CPanel system and am able to generate the screen shots and save them to root folder from shell with the following commands.

Xvfb :2 -screen 0 1024x768x24&
export DISPLAY=localhost:2.0
khtml2png2 --sw 200 --sh 150 http://www.example.com example.png
It works 100% fine when you run it from shell.

[Code]...

View 4 Replies View Related

Programming :: C Program - To Make Scripts That Can Talk To Server's Parallel Port

Jun 27, 2010

I need to make some C program under linux to make some scripts that can talk to my Server's Parallel port by sending some quare signal as high or low, so what i can do ?

View 4 Replies View Related

Software :: Trying To Run Java Program ?

Mar 25, 2011

I have a problem starting a java program.

I installed and am trying to run Antelope an ant file editor. When I try to start antelope I get the trace-back listed below.

When I first tried to start Antelope it asked me where ant/lib was located. I pointed it to /usr/share/ant/lib which has 3 jar files named ant.jar ant-bootstrap.jar and ant-launcher.jar.

I am running in Fedora14. With java version "1.6.0_20"

OpenJDK Runtime Environment (IcedTea6 1.9.7) (fedora-52.1.9.7.fc14-i386)

OpenJDK Client VM (build 19.0-b09, mixed mode) and javac 1.6.0_20

When I try to start it I get

Code:

I have tried it 2 ways, one with the environment variable ANT_HOME set to /use/share/ant/lib - which has some 3 jar files - and also to /home/knox/apache-ant-1.8.2/lib which has about 25 jar files. Same error message both ways.

View 15 Replies View Related

Fedora :: Run A Jar (java) Written Program?

Apr 28, 2010

Trying to use the html editor 'Arachnophilia'... here are the instructions on their website. ".Open a command console (Linux: shell console), move to the Arachnophilia program directory, type "java -jar Arachnophilia.jar" For convenience, this command can be made part of a shell script, and those using X windows can easily make a desktop icon." hoping someone can explain how to run this program.. using a new install of fedora 12 (which has java)...i'm a newbie, trying to go open source on a low end laptop - LOVE Fedora .[URL]..

View 14 Replies View Related

General :: Install Java Or Any Other Program?

Apr 27, 2010

I just got linux yesterday, ubuntu 9.1, with the wubi installer. I have no previous knowledge of linux and I am having a very hard time working out how to install or run any programs, at the moment I'm trying to get java to work.

View 4 Replies View Related

General :: Run Commands Using A Java Program?

Apr 9, 2010

I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java.

View 2 Replies View Related

Fedora :: Open A Java Program In Foreground

May 25, 2010

I have a java program with gui. I want to start this program in the start of system (rc3.d) and when I connect to the machine bring to front without open another time the program. I want to connect to opened program in the start of system.

View 1 Replies View Related

Installation :: Install Java Program On Ubuntu?

May 9, 2010

How can i do Java programming on ubuntu.
i mean how to install java on ubuntu.
i tried but fail to install jdk.

View 1 Replies View Related

Ubuntu :: Make Shortcut To Java Program?

Sep 15, 2010

How to make a shortcut to a program?

It's a Java program started by a shell script

#!bin/sh
java -jar LinShredder.jar

It starts okay in its original folder, but when I link to it from e.g. the desktop it doesn't work.

View 9 Replies View Related

Ubuntu Servers :: Force Java Program To Use More CPU

Mar 23, 2011

I have ubunto 10_4 X86-64 (I use putty to connect)
installed apps
screen
mysql server-client
my java program
open jdk* 64bit
apanche2 (the web server stuff)
and its aVPS machine
Xeon 2.0 64bit 4 GB ram

How can I make (or force) my java program to use more then 1 core? I would like it to be using just 5 of the 6 that I have. I use a .sh to run it this is the code for it.
Code:
#!/bin/bash
cd "${0%/*}"; java -Xshare:auto -Xmx2662M -jar craft.jar

View 5 Replies View Related

Ubuntu :: Execute A Java Program Without Ssh Connection

May 9, 2011

I would like that my java program continues executing when I close the ssh connection, how can I do that? I suppose I have to create a service, but I have no idea how to do it!

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved