Search Results

Search: Posts Made By: princelinux
3,361
Posted By princelinux
how to remove the target of the symbol link in a shell script
I have a target directory, there are some files and directories in "target_dir".

I have a symbol link: my_link -> <target_dir>

The target directory name is NOT known to the script (because it...
Forum: Programming 02-18-2009
6,444
Posted By princelinux
thanks a lot, guys.
thanks a lot, guys.
Forum: Programming 02-17-2009
8,547
Posted By princelinux
get the path of current running program
How does the program know the full path of itself when the program is running in certain diretory? BTW, I have no "argv" information of main() functino.

(The program is written in C++ on linux...
Forum: Programming 02-16-2009
6,444
Posted By princelinux
thanks for your answer, Corona688. yes, this is...
thanks for your answer, Corona688. yes, this is a way.

are the any other ways if I am not convenient (i.e. have no chance) to make a copy of stderr with dup() before the redirection happens?
Forum: Programming 02-15-2009
6,444
Posted By princelinux
how to redirect back to stdout
In my program, I am using library provided by other. In the library, the cout/cerr is redirected to a file (the file path is known).

After I call some methods in the library, I get one...
Forum: Programming 10-09-2008
19,460
Posted By princelinux
thanks jim. your guess is right - ctype_b...
thanks jim. your guess is right - ctype_b listed as external.

i tried to move link order according to your suggestion. but it still does not work.
Forum: Programming 10-08-2008
19,460
Posted By princelinux
I just link 3rd part archive file (xerces-c.a) to...
I just link 3rd part archive file (xerces-c.a) to make my own program.

the error looks like:

./lib_2_8_64bit/libxerces-c.a(XMLString.o): In function `xercesc_2_8::XMLString::trim(char*)':...
Forum: Programming 10-08-2008
19,460
Posted By princelinux
undefined reference to `__ctype_b'
when i compile my program, i meet the following error:
...
undefined reference to `__ctype_b'
...

anybody knows which shared library should be linked during make?

thanks a lot!
Forum: Programming 09-28-2008
2,289
Posted By princelinux
self-contained API package
I want to implement one API layer which contains some business logic related API methods. The platform is linux and the programming language is C++.

This API layer will use some utilitiy...
Forum: Linux 09-27-2008
8,338
Posted By princelinux
how to backtrace a shared library file (.so)
I have a shared library file (.so) and I need to know some information
1. By which GCC version was this .so built?
2. Was this .so built in 32 bits mode or 64 bits mode

Any command / tools to...
6,198
Posted By princelinux
Thanks, Annihilannic. Yes it works.
Thanks, Annihilannic. Yes it works.
6,198
Posted By princelinux
The erorr message is line 24:...
The erorr message is
line 24: ${APP_ROOT_${APP_MODE}}: bad substitution


BTW, ${APP_ROOT}_${APP_MODE} is not my intention.
6,198
Posted By princelinux
Enviornment Variable in B shell (I call it nested variable)
#!/bin/sh

APP_ROOT_MODE1=/opt/app1.0
APP_ROOT_MODE2=/opt/app2.0

APP_ROOT=${APP_ROOT_${APP_MODE}}


# enviornment variable APP_MODE will be exported in the terminal where
# we run the...
Forum: Linux 12-29-2007
57,286
Posted By princelinux
hi porter & uvrakesh, i got it. thanks a...
hi porter & uvrakesh, i got it. thanks a lot.
Forum: Linux 12-29-2007
57,286
Posted By princelinux
how to enable #ifdef macro in the command line of make?
[Keyword] Linux, C++, make, macro

In source code, we used some #ifdef macros. How can I enable #ifdef macro in the command line of "make" (NOTE: I do NOT want to change source code or makefile...
Forum: Linux 11-16-2007
6,124
Posted By princelinux
Linux version v.s. 32bit/64bit
Where can I get a list that maps the each Linux version to corresponding 32/64 bits model?

e.g.
OS -> Model (ILP32, LP64, ...)
RHLE3 -> ?
RHLE4 -> ?
RHLE5 -> ?
......
5,662
Posted By princelinux
2 questions about VNC viewer
I am using VNC Viewer 4.0 in my windows enviornment. The questions are:

1. how do you switch the applications in VNC enviornment?
ALT-tab doesn't work since it just switchs among VNC viewer...
Forum: Programming 06-05-2007
3,607
Posted By princelinux
exception vs. multiple-thread
Some questions regarding exception vs. multiple-thread :

1. there are one main thread and one child thread. the child thread may throw one exception but it doesn't try to catch any exception. ...
Forum: Programming 01-17-2007
49,488
Posted By princelinux
thank you, VINO
thank you, VINO
Forum: Programming 01-16-2007
49,488
Posted By princelinux
how to view loaded shared libraries by running processes in linux
anybody knows how to view loaded shared libraries by running processes in linux enviornment? any command or tool ?

thanks a lot
217,606
Posted By princelinux
thank you all! i tried ypchsh. it works.
thank you all!

i tried ypchsh. it works.
217,606
Posted By princelinux
how to change default shell in linux?
currently the default shell in my linux enviornemnt is ksh.

how to change the default shell to bash?

thanks!
Forum: Linux 09-09-2006
18,121
Posted By princelinux
grial, thank you. your reply helps a lot.
grial, thank you. your reply helps a lot.
Forum: Linux 09-09-2006
18,121
Posted By princelinux
grial, thanks. that's what i want. and, how...
grial, thanks. that's what i want.

and, how to SET the "maximun number of message queues "?
any other command?
Forum: Linux 09-08-2006
18,121
Posted By princelinux
maximun number of message queues
how to check the maximun number of message queues in current linux enviornment? is there any command ?
Showing results 1 to 25 of 33

 
All times are GMT -4. The time now is 09:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy