473,836 Members | 1,438 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ECHO in SOLARIS.

dmjpro
2,476 Top Contributor
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 8030
sicarie
4,677 Recognized Expert Moderator Specialist
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 Recognized Expert Expert
Everything is sent to the standard output by default. This would be the screen unless redirected.
May 15 '07 #3
dmjpro
2,476 Top Contributor
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 Recognized Expert Moderator Specialist
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 Recognized Expert Specialist
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 Top Contributor
as per as sicarie needs concern i sending u the line by which the process is started.

Runtime.getRunt ime().exec("pro cess_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
1445
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 works fine apart from trying to run php from bash.
6
6914
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 in file php_parse_date ext/standard/datetime.o ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
3
3880
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 thing was that it did run the Unix script and turned out the right result. Just the CMD window ... I had to kill the window by clicking on 'x'. After that it displayed CGI timeout error. What was going on? Thanks,
4
1852
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 Solaris Server with php5 mysql 4.1.6 ? That is what happens...I'm suspicious of the accent characters in the code but I am not sure if there's any truth to my suspicion and how I'd even test or fix it(?) Here's the snip I think causes the...
1
2403
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 -shared build/temp.solaris-2.9-sun4u-2.2/_imaging.o build/temp.solaris-2.9-s un4u-2.2/decode.o build/temp.solaris-2.9-sun4u-2.2/encode.o build/temp.solaris-2 ..9-sun4u-2.2/map.o build/temp.solaris-2.9-sun4u-2.2/display.o build/temp.solaris...
0
2016
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 I run 'python setup.py build', I get these errors: .... building '_mysql' extension creating build/temp.solaris-2.8-sun4u-2.3 gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/ usr/include/mysql...
0
9753
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. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
13
4100
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
1813
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 creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi/src
0
9813
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9665
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10835
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10541
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10585
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7785
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5818
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3108
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.