Hi,
I need to simulate the machine's native shell (sh), for that I open up a UNIX shell in my Java program.
My code works fine with windows shell ('cmd') but with unix ('sh') I failed to retrieve the machine's prompt.
I believe that the issue is unix-related and that the process I launched has no appropriate environment parameter, so i need the expert's opinion on that .
These are the environment's variables as printed by the user:
The following are the environment's variables as printed by my java app:
And these are the environment's variables as printed by the user in the shell that was launched by the java app:
Note that there is no prompt's variable (SP1) for the java app and\or the process that was launched by it.
Hi. I'm new to Unix and recently received Unix files via email. I downloaded those files but am unable to open them on my computer which uses Mac OS X. How do I open the files? (11 Replies)
Hi All,
well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this...
Please see the below details...and read the details carefully.
I have written some code, logic is
1)from... (4 Replies)
Hi,
I am trying to open a file that I have created from withn a shell script and cannot seem to get it working. Does anyone have any ideas?
Thanks. (2 Replies)
Hi All,
I need to call a java method from a shell script. I know we can use the command
java ClassName
to call the main method in it. But I need to call another method that is there in the class and pass an email to it.
Can I use
java ClassName.MethodName(email)
Any help will be... (4 Replies)
Hi,
Great to find this forum!
I'm a complete newbie to unix, and am having a hard time finding my way around.
Firstly, I've been reading something about c shell programming being one tenth the size of c programming done on unix.....I couldn't figure what that meant, but there were two... (7 Replies)
Members,
I been faced with an issue where i have to sale my project against JAVA.would like to know more on the strong point of shell script (bash shell) over java.I have a very limited knowledge on java.is there anyone who has worked on java and shell scripting in both and really been able to... (13 Replies)
I have a java classpath running inside of a unix shell script. During my testing it will error with lines that show an example like this below.
java.io.FileNotFoundException error
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:129),
... (2 Replies)
i am new to UNIX and C (primarilly a JDE and AS400/RPG developer). However,
I need to find a way to send data to and from a web service from within a UNIX C program.
What i would like to be able to do is to receive in a block of XML (from a non C application), wrap it, and then open a TCPIP... (3 Replies)