Hello all, This is my first java application since college (years ago..)
What it basically needs to do, is verify that it can connect to a server, and once it is connected, run a series of AIX commands to verify that certain processes are running, and if they aren't running, it needs to start them.
so far, I have been able to get the program to connect to the database but I am at a roadblock. Here's what I have so far..
EXECSTRING I have initialized as
I feel like I am spinning my wheels with this, and I am not sure if I am remotely close. Any assistance would be appreciated.
Moderator's Comments:
Please use [CODE] tags for code, listings, and terminal output
Here's some sample code that might help. If you're still familiarizing yourself with SQL as well, you might also find use in this reference.
[edit] On reread, whoa. Why are you making a database connection if you want to run shell commands? No wonder you're at a roadblock. Try a SSH connection.
Hi!
I have a m3000 server with solaris 10. Clients connecting to server using Xmanager. But when they open a Java based application its very slow and some times hanging. But when I tried with VNC it works fine. Is this a BUG in Xmanager? Or Is there any method to solve this?
Thanks,
Charith (3 Replies)
Hi,
(First post, please be gental!)
I have a java app that I am running on unix (centos)
But it keeps dying randomly. The times seem random from anything between 3 hours and 3 days.
I have a cronjob running to restart it when ever it dies but I would rather this happened less often.
... (2 Replies)
i had a confusion on the installed directory of my application server
a. if I create a domain w/o putting in directory, the domain automatically goes to /var/appserver/domains directory.
I need it to be under /opt/SUNWappserver/domains.. If I will include this in domain creation, may logs are... (0 Replies)
Hi Friends,
Can some one please guide me on how to make a script run on a remote UNIX machine from a java application.
Or may if you can just tell me how do u ping to the remote UNIX machine using java code.
Been looking for the solution since 5-6 hrs, didn't got any where near :(
Thanks. (1 Reply)
Hi to all,
I have developed a Java application for Solaris 10.
I am uing JDK 5.
But it is getting killed after some time.
And at the terminal, I got message as Killed.
I am new to Solaris.
Can anybody help me? (3 Replies)