Search Results

Search: Posts Made By: mosaic
Forum: Programming 03-19-2009
3,008
Posted By mosaic
Can you determin which step is time consuming? ...
Can you determin which step is time consuming? Connect , send data, or recv data from email server?
6,298
Posted By mosaic
A way to sovle the problem is external procedure....
A way to sovle the problem is external procedure.

you can write a c function to run shell script, it should be linked and warpped in a shared object(.so or .sl etc). And then create a procedure in...
26,574
Posted By mosaic
Oh, it's my fault. Script is really not...
Oh, it's my fault.

Script is really not working without r. But binary file can be executed without only x.

At the first time, I tried by a binary file, which results a wrong conclusion....
Forum: Programming 01-08-2009
4,840
Posted By mosaic
You can refer the manual page of realloc. it...
You can refer the manual page of realloc. it should be like this:

str1 = realloc(str1, 15 * sizeof(char));

in such case, realloc will free the memory allocated before if need.

when the first...
26,574
Posted By mosaic
but i have tried on the platform AIX 5.3. it can...
but i have tried on the platform AIX 5.3. it can be executed by another user in the same group. therefore i'm confused.
26,574
Posted By mosaic
I don't understand why impossible? if the...
I don't understand why impossible?

if the script's access permission is set as 411, whether the other users can execute the script?
Forum: Programming 01-05-2009
7,181
Posted By mosaic
try this: ---Transmit Program while((len =...
try this:
---Transmit Program

while((len = fread(buffer,sizeof(buffer),1, in)) > 0)
{
cout.flush();
send(s,buffer,len,0);
}
Forum: Programming 01-05-2009
9,505
Posted By mosaic
I think a backslash can sovle the problem. just...
I think a backslash can sovle the problem. just like:

system ("time \\(md5sum ./a.out\\)>log 2>&1");
7,794
Posted By mosaic
is this one?
find $1 -size +$2c ! -type d | xargs ls -l |awk '{print $5}'

find $1 -size +$2c ! -type d | xargs -t -I{} cp {} /temp

the above shell can list the size in bytes of all the eligible files in...
Showing results 1 to 9 of 9

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