aix

Using an append pattern sed on AIX

☆樱花仙子☆ 提交于 2021-02-11 16:11:29
问题 I have been struggling trying to find a pattern with sed and then append a character on AIX. I have absolutely no problem on Linux, but I really don't get how it is supposed to work on AIX. Very simple : I have a /tmp/test.txt : 1 2 3 4 5 And I want : 1 2 10 3 4 5 So that I can understand how it works on AIX. On Linux, I can do sed -i '/2/ a 10\' /tmp/test.txt It works. On AIX, I know we have to do a work around because there's no -i. But even after looking at other topics like Find pattern

Copy or move file into directory with parallel processing from another process

我们两清 提交于 2021-01-29 09:17:55
问题 I'm running two processes on AIX. Process one is generating several files, process two does backups from all files that are in a backup directory. Process one will copy or move the files into the backup directory. Since process two is always running in the background there is the risk of it starting a backup of a file that is still in the process of being copied or moved and therefore incomplete. How can I avoid this problem? 回答1: Process one should create files in another directory (on the

Copy or move file into directory with parallel processing from another process

若如初见. 提交于 2021-01-29 09:07:17
问题 I'm running two processes on AIX. Process one is generating several files, process two does backups from all files that are in a backup directory. Process one will copy or move the files into the backup directory. Since process two is always running in the background there is the risk of it starting a backup of a file that is still in the process of being copied or moved and therefore incomplete. How can I avoid this problem? 回答1: Process one should create files in another directory (on the

Linker error in AIX - Need explanation about the error “The csect is part of the .text section, and relocation entries”

允我心安 提交于 2021-01-29 02:13:50
问题 I get the following error from the linker 'ld' during linking. ld: 0711-302 ERROR: Object SomeLibrary.a[SomeObject.o], csect <.text> The csect is part of the .text section, and relocation entries from the csect have been written to the .loader section. ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. What does this error mean? (BTW I am using GCC for AIX) 来源: https://stackoverflow.com/questions/55058344/linker-error-in-aix-need-explanation-about-the-error-the

Linker error in AIX - Need explanation about the error “The csect is part of the .text section, and relocation entries”

匆匆过客 提交于 2021-01-29 02:11:25
问题 I get the following error from the linker 'ld' during linking. ld: 0711-302 ERROR: Object SomeLibrary.a[SomeObject.o], csect <.text> The csect is part of the .text section, and relocation entries from the csect have been written to the .loader section. ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. What does this error mean? (BTW I am using GCC for AIX) 来源: https://stackoverflow.com/questions/55058344/linker-error-in-aix-need-explanation-about-the-error-the

Are there in AIX mechanisms EPOLL/KQUEUE or their equivalents?

[亡魂溺海] 提交于 2021-01-28 00:34:55
问题 Are there in AIX mechanisms EPOLL(Linux2.6)/KQUEUE(FreeBSD)/IO Completion Port(Windows) or their equivalents? And what kind of mechanisms are optimal for AIO on AIX for a large number of network connections? For example according to the Benchmarks, the mechanisms KQUEUE / EPOLL much faster than SELECT. http://libevent.org/ 回答1: I believe poll set is the best choice today. There is also the iocp interfaces which comes from windows. And there are the aio interfaces which use iocp under the

Compiling pcre 8.32 on AIX 6.1 64 bit

╄→гoц情女王★ 提交于 2021-01-27 12:43:57
问题 I am trying to configure and make pcre using below command ./configure CC="gcc" CFLAGS="-maix64" CXX="gcc" CXXFLAGS="-maix64" LDFLAGS="-L/usr/ccs/bin -maix64" --disable-cpp --prefix=/usr/local/share/bld/pcre configure works fine: pcre-8.32 configuration summary: Install prefix .................. : /usr/local/share/bld/pcre C preprocessor .................. : gcc -maix64 -E C compiler ...................... : gcc -maix64 C++ preprocessor ................ : gcc -maix64 -E C++ compiler .........

shell script to create folder daily with time-stamp and push time-stamp generated logs

北慕城南 提交于 2020-12-28 21:11:57
问题 I have a cron job which runs every 30 minutes to generate log files with time-stamp like this: test20130215100531.log, test20130215102031.log I would like to create one folder daily with date time-stamp and push log files in to respective date folder when generated. I need to achieve this on AIX server with bash. 回答1: Maybe you are looking for a script like this: #!/bin/bash shopt -s nullglob # This line is so that it does not complain when no logfiles are found for filename in test*.log; do

shell script to create folder daily with time-stamp and push time-stamp generated logs

陌路散爱 提交于 2020-12-28 21:09:37
问题 I have a cron job which runs every 30 minutes to generate log files with time-stamp like this: test20130215100531.log, test20130215102031.log I would like to create one folder daily with date time-stamp and push log files in to respective date folder when generated. I need to achieve this on AIX server with bash. 回答1: Maybe you are looking for a script like this: #!/bin/bash shopt -s nullglob # This line is so that it does not complain when no logfiles are found for filename in test*.log; do

shell script to create folder daily with time-stamp and push time-stamp generated logs

Deadly 提交于 2020-12-28 21:08:30
问题 I have a cron job which runs every 30 minutes to generate log files with time-stamp like this: test20130215100531.log, test20130215102031.log I would like to create one folder daily with date time-stamp and push log files in to respective date folder when generated. I need to achieve this on AIX server with bash. 回答1: Maybe you are looking for a script like this: #!/bin/bash shopt -s nullglob # This line is so that it does not complain when no logfiles are found for filename in test*.log; do