Search Results

Search: Posts Made By: Konerak
Forum: Linux 12-18-2008
17,006
Posted By Konerak
Hello Siba, the kernel will automatically...
Hello Siba,

the kernel will automatically release the cached memory, if available. If java reports an error, perhaps you didn't start the Virtual Machine with the appropriate parameters?

If I...
Forum: Linux 12-03-2008
17,006
Posted By Konerak
Again, while this command works, you only revert...
Again, while this command works, you only revert the linux philosophy: "idle memory is a waste". Linux puts your unused-memory to use, why would you undo that?
5,787
Posted By Konerak
Wait will only wait on active child processes....
Wait will only wait on active child processes. Dead processes (or terminated, or non-existant) will not be waited for.
20,992
Posted By Konerak
Use the $? variable right behind the "perl"...
Use the $? variable right behind the "perl" command to store the returncode of the perl-process. Store it in another variable and do an if later?
14,808
Posted By Konerak
expr index "$a" . Will check if the variable...
expr index "$a" .

Will check if the variable a contains a .

man expr

to learn more.
Forum: Linux 11-26-2008
17,006
Posted By Konerak
Cache memory is just some nix-trix: instead of...
Cache memory is just some nix-trix: instead of "not using" memory your system doesn't need, it will use the memory to "cache data". When an application requests more memory, the kernel will free the...
Forum: Linux 11-25-2008
17,006
Posted By Konerak
1/ it's most probable that s93366 is right: the...
1/ it's most probable that s93366 is right: the memory is not "going away", it's being cached. It will be deducted from the "free", will be added to the "used", it will be in "cached" columns.

2/...
10,937
Posted By Konerak
I'll even write it in perl for him if he can...
I'll even write it in perl for him if he can convince me it's not homework. But you learn a lot more from trying yourself (and having your mistakes corrected) than reading other peoples code.
...
10,937
Posted By Konerak
Are you posting homework assignments? Why do you...
Are you posting homework assignments? Why do you need different random numbers from 1 to 18?

There are 2 ways:

1/ keep generating random numbers, reject the ones you already have (use a hash...
15,697
Posted By Konerak
(radoulov was faster, shorter and probably...
(radoulov was faster, shorter and probably better. Code below uses same principle, but very verbose.)

This program should do it (very verbose)


@a = qw/a c b a b d/;
%b = {};
@c = ();...
1,502
Posted By Konerak
#!/bin/sh ...
#!/bin/sh

var='today--RSS_URL=http://someurl'

x1=`echo $var | sed "s_\(.*\)--\(.*\)=\(.*\)_\1_"`
x2=`echo $var | sed "s_\(.*\)--\(.*\)=\(.*\)_\2_"`
x3=`echo $var | sed...
1,502
Posted By Konerak
echo "today--RSS_URL=http://someurl" | sed...
echo "today--RSS_URL=http://someurl" | sed 's/\(.*\)--\(.*\)=\(.*\)/x1=\1\nx2=\2\nx3=\3/'
x1=today
x2=RSS_URL
x3=http://someurl
14,691
Posted By Konerak
Jims answer will work. If you want the exitcode...
Jims answer will work. If you want the exitcode to be 99, just add the instruction "exit 99" where you want it.
2,108
Posted By Konerak
Or, even easier, echo...
Or, even easier,

echo "ECR/CHQ/GBP/12345.out" | cut -d'/' -f1,2,3
7,735
Posted By Konerak
The rules clearly state no posting homework...
The rules clearly state no posting homework assignment... why can't you use "diff"? It's made for this thing.
10,691
Posted By Konerak
sed -n '/xxx/,/xxx/p' <tst.txt Will find...
sed -n '/xxx/,/xxx/p' <tst.txt

Will find from the first xxx to the second,
from the third to the fourth,
etc...
10,366
Posted By Konerak
If you already know and have the .jcf files, why...
If you already know and have the .jcf files, why not just write a shell script that executes the commands one after another? Am I missing something?

Just open a file, write the commands on...
3,339
Posted By Konerak
You can use tput to "draw" ascii to the screen....
You can use tput to "draw" ascii to the screen. man tput.
2,629
Posted By Konerak
First of all, just "mkdir -p...
First of all, just "mkdir -p /var/opt/temip/GP_Int/GPTTS/AUTO" should work. The -p switch will suppress errors if the dirs exist and create the parents.

Reply if you need more help. You confused...
11,368
Posted By Konerak
First of all, you'll want the "ssh" command to...
First of all, you'll want the "ssh" command to return. So you add the ampersand to the ssh command, not (only) the sleep command.

Second problem: as the ssh returns, the remote server might...
Showing results 1 to 20 of 20

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