Search Results

Search: Posts Made By: baruchgu
Forum: Programming 02-23-2012
14,532
Posted By baruchgu
calloc fails: 'Cannot allocate memory'
Hi , experts.

I work on Linux station (RedHat 5.7), regular user, but have a root password.

%> uname -a
Linux ran1log06 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64...
Forum: Programming 02-21-2012
14,532
Posted By baruchgu
Jim, thanks for reply. I can not add swap...
Jim, thanks for reply.

I can not add swap on this station.
I succeeded to stop the program just before the exit out and run /bin/top - to see how memory it consumes: VIRT=79248, RES=28m :(
when...
Forum: Programming 02-20-2012
14,532
Posted By baruchgu
calloc fails: 'Cannot allocate memory'
Hi , experts.

I work on Linux station (RedHat 5.7), regular user, but have root password.

%> uname -a
Linux ran1log06 2.6.18-238.1.1.el5 #1 SMP Tue Jan 4 13:32:19 EST 2011 x86_64 x86_64 x86_64...
5,185
Posted By baruchgu
Great! it is $SHELL == /bin/csh 'unsetenv...
Great! it is $SHELL == /bin/csh
'unsetenv SHELL' solved the problem. thanks
5,185
Posted By baruchgu
DDD and GDB rereads ~/.cshrc
Who know why GDB reads my ~/.cshrc again when I type "run" command?
Same happends when run DDD debugger (it runs GDB inside)
I need the program to inherit the environment from the current shell....
1,860
Posted By baruchgu
Rational® Purify® compatable SW
Hi

Rational® Purify® is a dynamic software analysis tool - helps to clean your own C or C++ code from memory leak problems etc.

Who knows some compatable (my be freeware) software?
3,495
Posted By baruchgu
no idea
no idea
9,805
Posted By baruchgu
It looks as permission problem. Check the...
It looks as permission problem. Check the permission of directoty where you run.
ls -l .
2,301
Posted By baruchgu
Try rsync man rsync
Try rsync

man rsync
3,495
Posted By baruchgu
Hi, What failed? Put here the input line of...
Hi,
What failed? Put here the input line of awk, I mean after ps -ef |grep pmon|grep w414d
and the awk's output.

You may take last line by 'tail -1' :
ps -ef |grep pmon|grep w414d | tail -1
1,940
Posted By baruchgu
put here your awk, even does not work. Let see it...
put here your awk, even does not work. Let see it together.
11,352
Posted By baruchgu
where is $RANDOM defined?
where is $RANDOM defined?
3,495
Posted By baruchgu
ps -ef |grep pmon|grep +ASM|awk...
ps -ef |grep pmon|grep +ASM|awk '{n=split(/_/,arr,$NF);print arr[n]}'
1,274
Posted By baruchgu
awk '{arr[$1 " " $2] += $3} END {for ( i in arr )...
awk '{arr[$1 " " $2] += $3} END {for ( i in arr ) {print i " " arr[i]}' logfile
17,605
Posted By baruchgu
Just use mkdir -p $folderName it should...
Just use
mkdir -p $folderName

it should not give a message even the directory exists
35,822
Posted By baruchgu
new line
while read file
do
basename $file >> log.txt
echo >> log.txt
end

ok?
46,984
Posted By baruchgu
No banner on Linux machine
My Linux does not have /usr/libexec/filters/lpbanner
any idea???
6,745
Posted By baruchgu
awk -F, 'BEGIN {max_i=0} { \ for(i=1;i<=NF;i++)...
awk -F, 'BEGIN {max_i=0} { \
for(i=1;i<=NF;i++) {text_arr[NR SUBSEP i]=$NF} \
if ( NF > max_i ) {max_i = NF}} \
END { for(i=1;i<=max_i;i++) { for(j=1;j<=NR;j++)\
printf text_arr[j SUBSEP...
5,512
Posted By baruchgu
awk is best for such cases
Do something like this:

awk '/Automatic Recharge Audit Process Finished Correctly/ { \
print pre2 ; print pre1 ;print ;getline ;print ;next}\
{ pre1=$0; pre2=pre1}' /sn/log/OM* > ARe.out
Showing results 1 to 19 of 19

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