473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ECHO in SOLARIS.

dmjpro
2,476 2GB
I think the SOLARIS is same like UNIX.

thier basic fundas r same to same.

echo means it prints a specific given message.
if that process is not opened in a seperate window ... that means run in background ......... then where it prints?????

is there any predefined output stream for this case?????

i think .... the all experts could understand my Q.
a project-part (important) is stopped for this.
i tried in google but failed.
so.......Plz help.

kind regards.
dmjpro.
May 14 '07 #1
6 8012
sicarie
4,677 Expert Mod 4TB
I think the SOLARIS is same like UNIX.

thier basic fundas r same to same.

echo means it prints a specific given message.
if that process is not opened in a seperate window ... that means run in background ......... then where it prints?????

is there any predefined output stream for this case?????

i think .... the all experts could understand my Q.
a project-part (important) is stopped for this.
i tried in google but failed.
so.......Plz help.

kind regards.
dmjpro.
Echo just prints to the current window. It prints to standard output unless otherwise defined (pipe or redirect), as far as I know.
May 14 '07 #2
drhowarddrfine
7,435 Expert 4TB
Everything is sent to the standard output by default. This would be the screen unless redirected.
May 15 '07 #3
dmjpro
2,476 2GB
both of u many many thanx ....

i know that but i want that prticular stream.
actually what happens ............ i start a process using JAVA and the no seperate window opened for it.
and it echos lot of messages and takes long time to end.
right now ... my process stops responding but still active whenever i see the process status using PS command.

can't i define that stream by myself????????

so experts plz help.
it ll be very fantastic thing if that stream is handled by me.

kind regards.
dmjpro.
May 15 '07 #4
sicarie
4,677 Expert Mod 4TB
both of u many many thanx ....

i know that but i want that prticular stream.
actually what happens ............ i start a process using JAVA and the no seperate window opened for it.
and it echos lot of messages and takes long time to end.
right now ... my process stops responding but still active whenever i see the process status using PS command.

can't i define that stream by myself????????

so experts plz help.
it ll be very fantastic thing if that stream is handled by me.

kind regards.
dmjpro.
Hmm, I believe this would be better for the JAVA forum as soon as you describe your implementation - what is the line you are using to start the process in Java?

In a blunt and brute force way (non-elegant), you could pipe the output to a file, and then read that file in from your Java program, but I'm betting there is a better (more elegant) way.
May 15 '07 #5
Motoma
3,237 Expert 2GB
You could try changing the STDOUT stream in Java. This would cause your echos to go elsewhere (or be handled internally). Or you could try redirecting the output. If this is your own program, just change the echos to something else, perhaps some error handling?
May 15 '07 #6
dmjpro
2,476 2GB
as per as sicarie needs concern i sending u the line by which the process is started.

Runtime.getRuntime().exec("process_string");

what happens now ... after some times (near about 30-45 secs) the process stops responding.
but the process shown as still active.
when i see using PS command.

now if i start a process having a script which ll do only sleep for 10 mins.
it has no echos.
that runs properly .... it ends up after 10 mins.

plz help.
i ll be gratefull to u experts of UNIX and JAVA if any one help me out.

kind regards.
dmjpro.
May 16 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Darren | last post by:
Hi there. Had a look around google and found one post from someone with almost the same error and no reply. SunOS webdb 5.8 I have been trying to install PHP to work with Apache and it all...
6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
3
by: TL | last post by:
Please help. I need to get this problem resolved ... When I ran remote shell to a Sun Solaris 8 box from W2K box, the DOS' CMD window popped up and stayed there until CGI timeout. The funny...
4
by: Hal Halloway | last post by:
can mysql work in Windows but not Solaris? Is there any reason you can see why the fulltext php/mysql code below works OK on my win2k php4.3.6. mysql 4.1.3 pc but does *not* work when put on a...
1
by: Mark Nelson | last post by:
Hi I'm trying to build Imaging 1.1.4 in Solaris 9, I get passwd the first step i.e the building of libImging. However when I execute a python setup.py build I get the following error - gcc...
0
by: Bob Swerdlow | last post by:
I'm trying to install MySQLdb 0.9.2 so I can access my MySQL database from python under Solaris 8. I found the notes on changing the include and lib paths and it seems to find them okay, but when...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
by: Mary Lei | last post by:
Does anyone know the link to obtain the tarball for db2 8.1 for solaris running on AMD 64 bit ? This is the entire db2 installation on a new system that does not have db2. Thanks.
0
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.