unix

Dynamic Linking in C (lib*.so) library

I have written a code where in it would take in a executable file and the [lib*.so] library as my arguments and link @ Run-time. I want to also take in the function in the (*.o) file @ run-time and link it. But I don't know how to go about it. EDIT 1: The function I'm trying to link is a part of the .o file in the lib*.so library. So I...

how i can return more than one value from windows to unix-AIX ?

HI, i'm have to server:- 1-windows-server 2003 2-UNIX-AIX I execute something in windows server and now i want to return some value from windows to unix .... how i can do it i install copssh in windows server and openssh in unix server ...

In cygwin how do I check the file format of a file, how do I change the format from dos to unix?

In cygwin how do I check the file format of a file, how do I change the format from dos to unix? This question has probably already been answered before, but I could not find the answer in previous posts ...

get the return value of bat file in windows in unix ?

i have the following case :- i write bash file bbb in windows 2003 and but a return value = 3 by exit /b 3 then i execute this bash file from unix by this command :- ssh -l admin host 'cmd /c start c:\bbb' but when i print the return value i get ( 0 ) not ( 3 ) i print this value by `echo $? ' now how i can get a return value "exit cod...

Load php extensions dynamically

I have a live server which I want to occasionally use for testing purposes. I only have access to FTP and some basic administration tools there. Reading the documentation for dl() gives me hope I can load xDebug dynamically even though I can't add it to the loaded extension list. I have little idea how though. Question: How to obtain ...

Sending SIGSTOP to a child process stops all execution. C

When I call kill(Child_PID, SIGSTOP); from the parent, I expect the child to halt execution and the parent to continue. Is that the expected behavior or do I have to explicitly declare the SIGSTOP handler in the child? I have searched everywhere and not been able to find this information. Thanks. Braden ...

xargs with command that open editor leaves shell in weird state

Hey guys, I tried to make an alias for committing several different git projects. I tried something like cat projectPaths | \ xargs -I project git --git-dir=project/.git --work-tree=project commit -a where projectPaths is a file containing the paths to all the projects I want to commit. This seems to work for the most part, firing...

how i can pass a file directory (path) as parameter ?

how i can pass a file directory (path) as parameter to 1. batch file in windows operating system 2. bash file in unix oprating system ...

In Linux, how to tell how much memory processes are using?

I think I may have a memory leak in my LAMP application (memory gets used up, swap starts getting used, etc.). If I could see how much memory the various processes are using, it might help me resolve my problem. Is there a way for me to see this information in *nix? ...

In *nix, what causes "sleeping" in top command?

What causes these sleeping processes that I see in top? If I were to call PHP's sleep() function, would that add to the sleeping count I see in top? Are there any disadvantages to having a high number in sleeping? ...

unix sed command for escaped chars

I try to replace the char # with a newline \n: sed -e "s/#/\n/g" > file.txt this works fine. Now there is problem with the char #, when is escaped with -: eg.: 123#456-#789#777 should be: 123 456#789 777 The escaped char - itself can also be escaped: eg.: 123#456-#789--012#777 should be: 123 456#789-012 777 How can i do this with ...

how to run two perl scripts simultaneously fromt the same directory ?

i want to run two perl scripts at the same time from the same directory , from the command prompt , so that either of their outputs should not affect each other ...

Find Out Sum & Also Print All Lines

Input File: 9842,5,a1,100000 9844,5,a1,100000 9845,5,a2,100000 9846,1,a2,100000 Note : Sum of Column No.2 with respect to Column No.3 Column No.5 will contain sum w.r.t Column +$2=$3 Output Format Should be : 9842,5,a1,100000,10 9844,5,a1,100000,10 9845,5,a2,100000,6 9846,1,a2,100000,6 ...

How to use grep with regex to find all the files conatining a 'String'?

HI All, I am new in Unix, I am using SSH secure shell,i want to search file with some 'TEXT' or string and that string is like 'PACKAGE',followed by '%PA%EVENTS%'('PA_PACKAGE %PA%EVENTS%') this % i am assuming as in SQL*PLUS,means i a string PA can occur any where before EVENTS and EVENTS can occur any where after PA, I want to search th...

Zombie processes......

I'v some questions about zombie processes what the benefits from zombie process concept? know that the kernel keeps (PID,termination status, resource usage information) for zombie process what's the meaning of "resource usage information" how zombie's PPID() = 1 and it still zombie , (init reaps Zombies because it wait() by default) ...

Unix command-line JSON parser?

Can anyone recommend a Unix (choose your flavor) JSON parser that could be used to introspect values from a JSON response in a pipeline? ...

How do I see see version of tcsh that is running?

How do I see the current version of tcsh is running in my unix terminal? ...

How to add a new column in a file

I have file like this which contains 5 columns. But some rows in my file have 4 columns by mistake, for example in this file at the 5th and 6th rows, you can see that the second column is missing. I want to replace the missing 2nd column with a blank space without disturbing other rows in my file with field separator ",". 11111,5323,62...

How do generate a directory path with double-backslash or forward-slash separators?

I am writing a directory path to a text file from ant, which is later read by a Java Application to find another file. In my ant script I have: <property name="fulltrainer.dir" location="${trainer.dir}" /> <echo file="${trainer.dir}/properties/commonConfig.properties"># KEY VALUE CurrentBuildFile=${fulltrainer.dir}\current_bu...

where does debrelease put the package?

I use debrealse command to setup my package. But I cannot find it on disk. Where can I find it? ...