Hi
I have a server code that listens on port 3000
and I have
in /etc/services
test_server 3000/tcp
and in /etc/inetd.conf
test_server stream tcp nowait root /usr/mlc/tools/server
I rebooted the Solaris box and when it's up,
I tried telnetting from a different host to this
server host...
does "which bash" return /usr/bin/bash on the OS console ?
A- Yes
Can you run the command (ie EXACT command) from the console ?
A- Yes I can.
it shows
Hello World !
Are you running the test using the same user as you are from the java app ?
A- Yes. I'm the root user
I tried again and I got the following trace:
test file is there but I'm not sure why
it's complaining.
Anyone with any suggestions?
Fully appreciated
================================================
dial in updateCron in StatConfigGUI
java.io.IOException: /usr/bin/bash /wongz/scripts/test: not...
Even when I change to
else if ("Dial".equals(actionCommand))
{
try {
String[] cmd = new String[1];
cmd[0] = "/usr/bin/bash /wongz/scripts/test";
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(cmd);
System.out.println(cmd)...
sedj
thanks for the response.
But I still have the problem
else if ("Dial".equals(actionCommand))
{
try {
String[] cmd = {"/usr/bin/bash", "/wongz/scripts/test"};
Runtime.getRuntime().exec(cmd);
} catch ( java.lang.Exception f ) {...
Hi
I like to automate a dial-up process from unix
with GUI as the front-end for a user.
Is anyone willing to share on how I could achieve that ?
I'm not sure how in
actionPerformed(ActionEvent e) implementation
that I could invoke this script to dial-up
from unix via modem to a remote access...
A message queue created by a task on a server on
IP address 192.168.1.1;
I like to write a java client application (on IP address 192.168.1.2);
1 - how is JMS different from the message queue created
by a Solaris task ?
2 - I need help/guidance on how to read messages
in message queue, which is...
Sedj, thanks for your response. appreciate it.
1 - how is JMS different from the message queue created
by a Solaris task ?
2 - I need help/guidance on how to read messages
in message queue, which is created by a Solaris task,
and send them to display these messages on Java GUI.
How exactly do I...
I have the msg
C:\Documents and Settings\test>java -version
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.2', but '1.4' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
and I cant run a java program.
What is...
A message queue created by a task on a server on
IP address 192.168.1.1;
I like to write a java client application (on IP address 192.168.1.2);
1 - What's the basic concept of using message queue ?
2 - is there a code example on java network programming where
I could retrieve message from the...
I have a record that is like this below; records like this
are delimited by --- lines; I need to write a bash script
that automatically checks for almost all the fields
defined on each row;
1- Is it difficult to write a shell script that processes
these records and checks each field in each...
I have a record that is like this below; records like this
are delimited by --- lines; I need to write a bash script
that automatically checks for almost all the fields
defined on each row;
1- Is it difficult to write a shell script that processes
these records and checks each field in each...
Hi
I like to learn embedded programming with Linux on a mobile phone.
Could someone point to me where I do that ?
I'm a newbie to programming on embedded device.
Is there a cheap way ($ wise to purchase hardware)
to learn embedded programming on Linux and other platforms.
Are there hard...
Hi
I like to learn embedded programming with Linux on a mobile phone.
Could someone point to me where I do that ?
I'm a newbie to programming on embedded device.
Is there a cheap way ($ wise to purchase hardware)
to learn embedded programming on Linux and other platforms.
Are there hard...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.