Unix/Linux Go Back    

Showing results 1 to 25 of 33
Search took 0.01 seconds.
Search: Posts Made By: princelinux
Forum: Shell Programming and Scripting Linux 10-11-2011
Replies: 1
Views: 2,528
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 Linux 02-18-2009
Replies: 5
Views: 5,552
Posted By princelinux
thanks a lot, guys.

thanks a lot, guys.
Forum: Programming Linux 02-17-2009
Replies: 1
Views: 7,453
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 Linux 02-16-2009
Replies: 5
Views: 5,552
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 Linux 02-15-2009
Replies: 5
Views: 5,552
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 Linux 10-09-2008
Replies: 6
Views: 16,167
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 Linux 10-08-2008
Replies: 6
Views: 16,167
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 Linux 10-08-2008
Replies: 6
Views: 16,167
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 Linux 09-28-2008
Replies: 1
Views: 1,913
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 Linux 09-27-2008
Replies: 2
Views: 4,905
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...
Forum: Shell Programming and Scripting Linux 07-02-2008
Replies: 4
Views: 5,033
Posted By princelinux
Thanks, Annihilannic. Yes it works.

Thanks, Annihilannic. Yes it works.
Forum: Shell Programming and Scripting Linux 07-01-2008
Replies: 4
Views: 5,033
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.
Forum: Shell Programming and Scripting Linux 07-01-2008
Replies: 4
Views: 5,033
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 Linux 12-29-2007
Replies: 3
Views: 30,342
Posted By princelinux
hi porter & uvrakesh, i got it. thanks a...

hi porter & uvrakesh, i got it. thanks a lot.
Forum: Linux Linux 12-29-2007
Replies: 3
Views: 30,342
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 Linux 11-16-2007
Replies: 1
Views: 5,366
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 -> ?
......
Forum: UNIX Desktop Questions & Answers Linux 07-17-2007
Replies: 1
Views: 5,124
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 Linux 06-05-2007
Replies: 1
Views: 3,003
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 Linux 01-17-2007
Replies: 3
Views: 38,914
Posted By princelinux
thank you, VINO

thank you, VINO
Forum: Programming Linux 01-16-2007
Replies: 3
Views: 38,914
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
Forum: Shell Programming and Scripting Linux 11-07-2006
Replies: 8
Views: 207,992
Posted By princelinux
thank you all! i tried ypchsh. it works.

thank you all!

i tried ypchsh. it works.
Forum: Shell Programming and Scripting Linux 11-06-2006
Replies: 8
Views: 207,992
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 Linux 09-09-2006
Replies: 4
Views: 10,640
Posted By princelinux
grial, thank you. your reply helps a lot.

grial, thank you. your reply helps a lot.
Forum: Linux Linux 09-09-2006
Replies: 4
Views: 10,640
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 Linux 09-08-2006
Replies: 4
Views: 10,640
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 07:46 PM.