• ALGEMENE VOORWAARDEN
  • GENERAL TERMS & CONDITIONS

KUDOS - IT consultant and FOSS supporter

  • home
  • contact
  • services
  • baanboard
  • msx
Home

Feed aggregator

AIX 6.1 System Requirement

UNIX.com - Mon, 06/09/2010 - 18:13
Hi,

Does anyone know when to find the supported server requirements so I can upgrade from AIX 5.3 to AIX 6.1? We are planning to migrate our NIM server to 6.1 and would like to know if our hardware is supported. Thanks.

---------- Post updated at 11:13 AM ---------- Previous update was at 11:09 AM ----------

Found the release note.

http://publib.boulder.ibm.com/infoce...e_relnotes.pdf

Thanks.

Extracting Lines in a file

UNIX.com - Mon, 06/09/2010 - 17:10
Hi,

We have a file where we need to extract the lines of a file based on the first three characters of every line in that file.

Eg:
Code: RAM hill station
SAM student
RAM rose
SAM apple
RAM india
SAM australia
RAM happy
RAM heaven
SAM smile
RAM glow So, all the lines that start with RAM should go to one file and all lines that start with SAM should go to another file.

Is there any way to achieve this?

Thanks in advance..

Sue:)

Moderator's Comments: Having 23 posts you should be familiar using code tags, thanks.

Threads and VSZ memory

UNIX.com - Mon, 06/09/2010 - 16:05
Hi everyone,

I'm running montavista linux kernel 2.6.10 on embedded computer with 128 MB RAM. I'm using xscale_be-gcc and pthread library.

When I start my application VSZ is about 4MB. After few days it's about 3GB. Application is still running without problems.

I'm little worried about VSZ size. I know that VSZ isn't real memory usage but it seems like some kind of memory leak.

I have two main threads running in infinite loop. In most cases I'm using pthread_create without pthread_join.

I have few pthread_create inside those two main threads. I'm also creating new threads from main program. All threads (except 2 main threads) are like functions, they are terminated after few milliseconds after processing is finished.


Code: thread1()
{
        // do something
        // start a new thread
}

thread2()
{
        // do something
        // start a new thread
}

main()
{
      pthread_create(..., THREAD1); // create first thread
      pthread_create(..., THREAD2); // create second thread

      while(1)
      {
           
            // code below is processed once in a second

            if(logical expression)
            { 
              //  create thread
                  pthread_create(..., THREAD3);
                  pthread_join(..., THREAD3);

            }
        }
} Is this normal behavior of pthread library?

Pomoc przy skrypcie

UNIX.com - Mon, 06/09/2010 - 15:38
Mam plik, który ma przykładowo linie

Code: Proto  Local Address          Foreign Address        State          PID
TCP    10.72.58.81:1044      10.72.58.25:3929      ESTABLISHED    696 Chciałbym napisać skrypt który wywali te linie w których napotka w polu Foreign Address wartość 10.72.58 (taki początek nie wazne co jest dalej)


Pozdrawiam

Order Horizon in TPOP

Baanboard.com - Mon, 06/09/2010 - 15:05
Forum: Manufacturing & Supply Chain Posted By: asfarjee Post Time: 3rd September 2010 at 09:26

create a file inside a directory

UNIX.com - Mon, 06/09/2010 - 14:57
create a file inside a directory in one command
like
current directory is root

i want to create a directory inside root and a file inside that directory

is there any command like
touch /d/d.txt d directory does not exist

multiple nslookups

UNIX.com - Mon, 06/09/2010 - 14:35
Hi Guys

i am creating a script in tcsh to perform a nslookup to a ip address. now i need to modify the script to perform nslookups on multiple ip addresses. the ip addresses are added as variables to the script on the command line.
i also need to do a nslookup on a specific dns host.
can anyone help me?

here is the current script i have

Code:
 while (9)
#set n=>1
if ($# != 1) then
    echo broken
  exit
endif

if ( "`ping $1 2 | grep alive`" != "" ) then
    if ("`nslookup $1 | grep find`" != "") echo "$1"
 endif
exit Kind regards.
Brian

multiple nslookups

UNIX.com - Mon, 06/09/2010 - 14:35
Hi Guys

i am creating a script in tcsh to perform a nslookup to a ip address. now i need to modify the script to perform nslookups on multiple ip addresses. the ip addresses are added as variables to the script on the command line.
i also need to do a nslookup on a specific dns host.
can anyone help me?

here is the current script i have

Code:
 while (9)
#set n=>1
if ($# != 1) then
    echo broken
  exit
endif

if ( "`ping $1 2 | grep alive`" != "" ) then
    if ("`nslookup $1 | grep find`" != "") echo "$1"
 endif
exit Kind regards.
Brian

Transpose

UNIX.com - Mon, 06/09/2010 - 14:23
TRANSPOSE

--------------------------------------------------------------------------------

i have a file with recurring fields

Start
A 1
B 2
C 3
D 4
E 5
End

Start
A 11
B 12
C 23
D 25
E 21
End

I would like to convert
A B C D E
1 2 3 4 5
11 12 23 25 21

Get the substring

UNIX.com - Mon, 06/09/2010 - 13:45
Hi All,

I have a ouput string likes 'u8wos' or 'u10acsd' or somthing else 'u{number}{any characters}'and I want to get the number behind the letter 'u' by bash shell.



Thanks
Damon

BAAN printer error

Baanboard.com - Mon, 06/09/2010 - 13:35
Forum: Tools Administration & Installation Posted By: tttt402 Post Time: 3rd September 2010 at 08:27

problem with sort

UNIX.com - Mon, 06/09/2010 - 13:09
Hi all,

i want to sort by the (1-8) columns and (9-7) columns:

my file:

Code: MARTINEZ---PAUL
--DUPOND---EDDY
--DURANDJACQUES
--DUPOND--ALAIN
output:

Code: --DUPOND--ALAIN
--DUPOND---EDDY
--DURANDJACQUES
MARTINEZ---PAUL
thanks

---------- Post updated at 06:09 AM ---------- Previous update was at 05:48 AM ----------

thank you

it's possible to only use sort command ?

---------- Post updated at 06:09 AM ---------- Previous update was at 06:09 AM ----------

thank you

it's possible to only use sort command ?

Use awk to print first 6 characters

UNIX.com - Mon, 06/09/2010 - 13:00
Hi,
i want to use awk to print the first 6 characters of a variable

Code: awk -F"|" '$3>0 { print $3 }' z00.unl > z001.unl but $3= 7 digits
and i just want to print the first 6 digits.

eg 1005779 but i want to print only 100577

check files updation

UNIX.com - Mon, 06/09/2010 - 12:59
Hi All,

Can anyone help to write the script to check files updation?

i have files as mentioned below. which will be updated some time.

i just want to check the last file is updating the data for last 15 mins or not.

if its not updating i want to print NOT OK. if its updating data i want to print OK

files ex

Code: -rw-rw-rw-  1 lscpusr  lscpusr      120 May 19 10:08 CDR_55000_19_05_2010_10_08_48.log
-rw-rw-rw-  1 lscpusr  lscpusr      111 May 20 11:32 CDR_50000_20_05_2010_11_32_53.log
-rw-rw-rw-  1 lscpusr  lscpusr      120 May 24 16:55 CDR_45000_24_05_2010_16_55_19.log
-rw-rw-rw-  1 lscpusr  lscpusr      120 May 25 16:57 CDR_55000_25_05_2010_16_57_29.log
pls help me to write the script.

Thanks.

the below script is for present time upation. but i want the script for last 15mins


Code: dt7=`date '+%D'`
F1=`ls -ltr | tail -1 | awk '{print $7}'`
if [ "$F1" == "$dt7" ]
then
echo " FILES update STATUS : NOT OK" >>/tmp/Healthcheck_$dt.log
else
echo " FILES update STATUS :  OK" >>/tmp/Healthcheck_$dt.log
fi

Perl & Sed command -- Out of Memory Error

UNIX.com - Mon, 06/09/2010 - 12:48
Experts,

We used to receive our source files with '~^' as row delimiter. This file contains 2500K records and two of the columns having value in HTML formats within the file.

While running the below commands against the file, we are encountering out of memory, could you please help to identify why this error is coming out and what way can be fixed. We used to run this piece of code for several other files and it is working properly.

Code: perl -pi -e 's/~\^/^F/g' Srik001.dat (out of memory error) Code: Sed 's/~\^/^F/g' Srik001.dat > Srik.dat (failed to allocate memory error) Thanks in advance

Thanks & regards
Srik

Moderator's Comments: There is no need to format each line on it's own. And please use code tags for command lines, listings, console output, and other similar texts

Record Type Value Question

Baanboard.com - Mon, 06/09/2010 - 12:35
Forum: Finance, Invoicing and Integration Posted By: GabrielVA Post Time: 2nd September 2010 at 21:11

Finance functionnal documentation for BaaN IV c4

Baanboard.com - Mon, 06/09/2010 - 12:35
Forum: Finance, Invoicing and Integration Posted By: samsan Post Time: 2nd September 2010 at 16:55

DistroWatch Weekly, Issue 370

UNIX.com - Mon, 06/09/2010 - 12:30
Source...

How to pipe ufsdump to ufsrestore?

UNIX.com - Mon, 06/09/2010 - 12:18
Dear all, i want to copy the partition contents from a smaller disk to a larger disk but without modifying the target disk partition size. To this end, i tried to use piping ufsdump to ufsrestore as 'ufsdump 0f - /dev/dsk/c0t0d0s0 l ufsrestore -i - /dev/dsk/c0t1d0s0' but it was not successful. Can you please help me to correct my command to be successful?

Moderator's Comments: Double post. Continue here.

Disk Space

UNIX.com - Mon, 06/09/2010 - 11:59
Hi Guys

i have a nice little piece of code then i need to modify so that is does not look at /Voulmes/*

thanks

Code: sub disk_full {
    my $i = 0;
    open( DF, "df -l|" );
    while (<DF>) {
        #chomp();
        next if (/^\/proc\b/);
        $i++;
        next if ( $i == 1 );

        my ( $Filesystem, $blocks, $Used, $Available, $Use_perc, $Mounted ) =
          split( " ", $_ );
        next if (/\/dev*$/);
        next if (/\/dev\/shm$/);
                next if (/\/Volumes\/*$/i);
        #next if (/\/.automont\/hosts\/*$/);
        $Use_perc =~ s/\%//g;
        if ( $Use_perc > 90 ) {
                        my $msg = $Mounted . " is " . $Use_perc . "% full ; ";
            push(@errors, $msg);
        }
    }
    close(DF); any ideas - as you can see i have tired but it does not work?

thanks
Adam
  • « first
  • ‹ previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • …
  • next ›
  • last »
Syndicate content

Navigation

  • Glossary
  • Recent posts

Search

User login

  • Request new password

Recent comments

  • reply this post
    1 week 5 days ago
  • answer
    2 weeks 1 day ago
  • On the same port
    14 weeks 1 day ago
  • All, with 2 daemons running
    17 weeks 3 days ago
  • /etc/init.d/sshd
    21 weeks 4 days ago
  • No easy way to do this
    21 weeks 5 days ago
  • external iface is dhcpd addressed
    21 weeks 5 days ago
  • Great
    23 weeks 6 days ago
  • Great!
    26 weeks 6 days ago
  • Thanks!
    28 weeks 5 days ago

Use Free Software!

Visit the Free Software Directory

Baanboard.com

  • Logname not authorised
  • Infor Tools Consultants
  • Infor Distribution Consultants
  • Tipo de Font
  • To Display details of an Order in the special menu
more

UNIX.com

  • using awk to print absolute value
  • How to write to .csv file
  • Distribution Release: Linux Mint 201009 "Debian"
  • Help on "tr' command
  • Mapping with series from master file and calculate count
more

  • home
  • contact
  • services
  • baanboard
  • msx