• ALGEMENE VOORWAARDEN
  • GENERAL TERMS & CONDITIONS

KUDOS - IT consultant and FOSS supporter

  • home
  • contact
  • services
  • baanboard
  • msx
Home

Feed aggregator

How to write to .csv file

UNIX.com - 1 hour 54 min ago
Hello All,

I am writing a shell script in which I am reading from a .csv file.
I am capturing the data of the .csv file into variable. Now after doing some manipulation on those variables I want to write these variables to another .csv file.

I have achieved the part of
1) reading from .csv file
2) doing manipulations and arriving at variables such as ccypair,optiontype etc.

I would like to know how to write these variables in a .csv file (comma seperated) as a row.

Please suggest.

Thanks & Regards
Arundhati

Distribution Release: Linux Mint 201009 "Debian"

UNIX.com - 2 hours 27 min ago
Source...

Help on "tr' command

UNIX.com - 2 hours 34 min ago
Hi All,

I was asked to rewrite a script which is working in Solaris to Linux. In the existing script i have following 'tr' command.

Code: tr -d '\002\003\013\032\001\014\272'  <$INPUT_FILE | tr -cd '[:print:]\n' >$OUTPUT_FILE Some1 help me to understand this. Here is my understanding,
tr -d option deletes the occurance of '\002\003\013\032\001\014\272' in the input_file and prints with new line character.

Brief abt script, we are extracting our feed file from Aix (mainframe) and loading that in application running in the Linux OS. Since mainframe uses EBCDIC i have to remove some extra character which is not applicable or printable in ascii. So this script is used to remove those non-printable character and load into solaris server successfully. It is my time to convert this into Linux.

thx for help

Mapping with series from master file and calculate count

UNIX.com - 2 hours 34 min ago
Hi All,

My shell script is calculating the count of each shortcode series wise whose sample output is as follows:
Code: --------------------------
56882
9124 1
9172 1
9173 4
8923 6
9175 1
9058 2
7398 2
--------------------------
58585
series count
9124 1
8858 17
9061 21
9125 21
9126 7
9171 106
9172 4
7899 4
9173 7
9175 14
9059 92
7871 94
7396 183
7398 386
9060 13
--------------------------
58888
series count
9124 12
8858 2
9061 44
9125 36
9062 139
9171 20
9126 17
9172 94
9173 84
7899 113
8923 76
9175 59
9058 101
7870 327
7871 36
9059 24
7396 19
9122 202
7398 55
9060 62
--------------------------
57575
series count
8858 6
9124 6
9061 5
9062 26
9125 11
9171 5
9126 43
9172 14
9173 43
7899 7
9058 25
7870 15
8923 46
9175 71
7871 6
9059 13
7396 28
9122 17
7398 37
9060 15
--------------------------
57677
series count
9175 5 Code for generating above output is as follows:
Code: Ydate=`date -d'-1 days' +'%Y-%m-%d'`
shortcodes=( "56882" "58585" "58888" "57575" "57677" );
for shortcode in ${shortcodes[@]}
do
        echo "--------------------------";
        echo $shortcode;
        echo "series count";
        grep "ShortCode=tel:${shortcode}" /opt/bea/ocsg_4.1/logs/customlogs/App_OP.log.$Ydate | awk -F"|" '{ arr[substr($2,1,4)]++ } END { for( no in arr) { print no , arr[no] } }'
done And i have one master file whose data is as follows:
Code: 9059 North
7398 South
9175 North
9122 South
9175 North
7871 South Now I want to map each series count with its Region mention in the master file and calculate the count region wise like following:
Code: --------------------------
57677
 
North 5
South 0
--------------------------
57575
North 178
South 200
--------------------------
58888
North 123
South 109 Please help me in modifying my scipt for getting the above output
Thanks in advance.

How to Compare two files

UNIX.com - 2 hours 35 min ago
Hi,

I have two files with me.
Code: f1.txt
-rwxr-----  1 mr459s  other        7505951 May 21 09:04 a1.gz
-rw-r-----  1 mr459s  other        16419332 May 24 03:54 a2.gz
-rw-r-----  1 mr459s  other            1001 May 24 03:54 a3.gz
-rwxr-----  1 mr459s  other            298 May 25 08:49 a4.gz
-rwxr-----  1 mr459s  other        22657154 May 28 05:52 a5.gz
-rwxr-----  1 mr459s  other      129274887 May 28 05:56 a6.gz
-rwxr-----  1 mr459s  other      355929421 May 28 05:56 a7.gz
-rwxr-----  1 mr459s  other      289019287 May 28 05:56 a8.gz

f2.txt
07-25-10  05:15PM              7505951 a1.gz
07-25-10  05:14PM            16419332 a2.gz
07-25-10  05:14PM                1001 a3.gz
07-25-10  05:15PM                  298 a4.gz
07-25-10  05:14PM            22657154 a5.gz
07-25-10  05:39PM            129274887 a6.gz
07-25-10  05:38PM            355929421 a7.gz
07-25-10  05:35PM            289019287 a8.gz Basically i have to compare the size of each file listed(8 files) in f1.txt to files listed in f2.txt and put result in another file. The sequence of the files are not constant.

I tried a lot but did not get much. So could any one please suggest how to do this.

Thanking in advance.

Daily grep on a log file

UNIX.com - 2 hours 36 min ago
Hi,
I would like to execute a daily grep like:
grep 2010-09-06 statistics.log|grep API > /var/tmp/stat20100906_sp.txt

On date e.g. 2010-09-07 run a grep on yesterday's date, from the result grep the word "API" put all in /var/tmp
Would like to have a script configured in the crontab, running a grep on "yesterday's" date and put in in /var/tmp.

Today I execute this manually each day...:cool:

P.S. O/S = Solaris (bash)

How can I zoom to 2 fields ?

Baanboard.com - 2 hours 37 min ago
Forum: Tools Development Posted By: Gibbsnich Post Time: 3rd September 2010 at 18:48

check web content - Ksh

UNIX.com - 3 hours 14 min ago
Hi everybody!
I wonder if I could see some text content of a website, via command line...
That could be very helpful, in order to automatize a lot of projects im working on.

thx a lot

How to keep process running after apache restart.

UNIX.com - 3 hours 42 min ago
I have posted this on the Web subforum but it seems that nobody knows to do this, maybe someone has a solution here. Thank you

I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die.

How can I start them in a way that they are not killed when I restart/stop apache ?

PHP Code:       $cmdstr = "nohup ".$config['hsp_path']."/".$config['sc_trans']." ".$config['hsp_path']."/autodjs/".$port."/".$srvname.".conf";
      $cmdstr .= " > /dev/null & echo $!";
      $pid = shell_exec($cmdstr); 
This is how I start that app.

temp files

UNIX.com - 5 hours 14 min ago
Hi there,

As a regular unix user I am forever programming on the command line or writing scripts so that I first write a load of data to a file to read from. In the end I am always left with a bundle of .txt, .tmp which is what I usually call them. As a basic programmmer I was wondering is there a more cleverer way of writing data temporarily to a place of which can be used as reference for my script or next lot of commands??? For example,

du -ks * >> disk.log

......then I go on to using my scripts to manipulate or read in this file

ssh help

UNIX.com - 5 hours 19 min ago
Hi,

I have a script which I want to execute on a remote machine using ssh.

I am using ssh boxname -n "script.sh [ARG1]"

Depending upon the parameter passed it picks up the .profile to be sourced. However when I try to print the values of variables defined in that .profile, it doesn't show up.

Need assistance in finding out the solution.

The script is present in the remote box to which I am doing ssh

Thanks in advance.

How to install expect after installing tcl on Redhat Linux

UNIX.com - 7 hours 9 min ago
Hi,
I have install tcl and then expect but I am getting below ouput while trying which expect
Code: which expect
/usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) I have copied both in /usr/local/src and then installed as below

Code: cp tcl8.2.0.tar /usr/local/src
cp expect.tar  /usr/local/src

cd /usr/local/src

tar xvf tcl8.2.0.tar
tar xvf expect.tar

# Tcl

cd tcl8.2.0/unix
./configure
make install --------------------------------------
Code: # Expect

cd /usr/local/src/expect-5.40
./configure
make Now I could see the ouput for tcl but not for expect while trying rpm -qa
Code: [root@linux1 expect-5.32]# rpm -qa | grep tcl
tcl-8.4.7-2
tclx-8.3.5-4 Expect:-
I am not getting anything while trying rpm -qa | grep expect.

I have also attached the log of ./configure make for expect.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
Code: configure:566: checking for autoconf
configure:594: checking configure up to date
configure:655: checking host system type
configure:676: checking target system type
configure:694: checking build system type
configure:724: checking shell to use within Make
configure:758: checking for gcc
configure:871: checking whether the C compiler (gcc ) works
configure:887: gcc -o conftest conftest.c 1>&5
configure:913: checking whether the C compiler (gcc ) is a cross-compiler
configure:918: checking whether we are using GNU C
configure:927: gcc -E conftest.c
configure:946: checking whether gcc accepts -g
configure:986: checking for building with threads
configure:1039: checking for Tcl configuration
configure:1132: checking Tcl build library
configure:1136: checking for Tcl_CreateCommand
configure:1164: gcc -o conftest conftest.c -L/usr/local/src/tcl8.5.8/unix -ltcl8.5 -ldl -lieee -lm 1>&5
configure:1180: checking if Tcl library build specification is valid
configure:1222: checking for Tk configuration
configure:1311: checking for Tk_Init
configure:1339: gcc -o conftest conftest.c -L/usr/local/src/tcl8.5.8/unix -ltcl8.5 1>&5
/tmp/ccKJdzfD.o(.text+0x1d): In function `main':
: undefined reference to `Tk_Init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 1316 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char Tk_Init(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char Tk_Init();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_Tk_Init) || defined (__stub___Tk_Init)
choke me
#else
Tk_Init();
#endif
; return 0; }
configure:1365: checking if Tk library build specification is valid
configure:1380: checking whether the compiler (gcc) actually works
configure:1389: gcc -c conftest.c 1>&5
configure:1408: gcc -o conftest conftest.c 1>&5
configure:1442: checking for a BSD compatible install
configure:1499: checking for ranlib
configure:1539: checking how to run the C preprocessor
configure:1560: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1620: checking if running LynxOS
configure:1696: checking for ANSI C header files
configure:1709: gcc -E conftest.c >/dev/null 2>conftest.out
configure:1776: gcc -o conftest conftest.c 1>&5
configure:1800: checking for pid_t
configure:1833: checking return type of signal handlers
configure:1855: gcc -c conftest.c 1>&5
configure:1874: checking whether time.h and sys/time.h may both be included
configure:1888: gcc -c conftest.c 1>&5
configure:1909: checking for sys/wait.h that is POSIX.1 compatible
configure:1930: gcc -c conftest.c 1>&5
configure:1972: checking if running Mach
configure:1988: checking if running MachTen
configure:1998: checking if on Pyramid
configure:2008: checking if on Apollo
configure:2018: checking if on Interactive
configure:2028: checking if stty reads stdout
configure:2084: checking if running Solaris
configure:2104: checking for sin
configure:2132: gcc -o conftest conftest.c 1>&5
configure:2116: warning: conflicting types for built-in function 'sin'
/tmp/ccVoibud.o(.text+0x1d): In function `main':
: undefined reference to `sin'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2109 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char sin(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sin();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_sin) || defined (__stub___sin)
choke me
#else
sin();
#endif
; return 0; }
configure:2230: checking for Tcl private headers
configure:2372: checking type of library to build
configure:2451: checking for gethostname
configure:2479: gcc -o conftest conftest.c -lm 1>&5
configure:2547: checking for gethostname
configure:2575: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:2643: checking for gethostname
configure:2671: gcc -o conftest conftest.c 1>&5
configure:2742: checking for socket
configure:2770: gcc -o conftest conftest.c -lm 1>&5
configure:2838: checking for socket
configure:2866: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:2934: checking for socket
configure:2962: gcc -o conftest conftest.c 1>&5
configure:3032: checking for select
configure:3060: gcc -o conftest conftest.c -lm 1>&5
configure:3128: checking for select
configure:3156: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
configure:3224: checking for select
configure:3252: gcc -o conftest conftest.c 1>&5
configure:3322: checking for getpseudotty
configure:3350: gcc -o conftest conftest.c -lm 1>&5
/tmp/ccUmd7vZ.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3327 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3373: checking for getpseudotty in -lseq
configure:3392: gcc -o conftest conftest.c -lseq -lm 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3381 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3425: checking for getpseudotty
configure:3453: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
/tmp/cc4WoeaE.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3430 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3476: checking for getpseudotty in -lseq
configure:3495: gcc -o conftest conftest.c -lseq -ldl -lieee -lm 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3484 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3528: checking for getpseudotty
configure:3556: gcc -o conftest conftest.c 1>&5
/tmp/ccHq1Tra.o(.text+0x1d): In function `main':
: undefined reference to `getpseudotty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3533 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpseudotty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpseudotty) || defined (__stub___getpseudotty)
choke me
#else
getpseudotty();
#endif
; return 0; }
configure:3579: checking for getpseudotty in -lseq
configure:3598: gcc -o conftest conftest.c -lseq 1>&5
/usr/bin/ld: cannot find -lseq
collect2: ld returned 1 exit status
configure: failed program was:
#line 3587 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpseudotty();
int main() {
getpseudotty()
; return 0; }
configure:3634: checking for openpty
configure:3662: gcc -o conftest conftest.c -lm 1>&5
/tmp/cckgayyA.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3639 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3685: checking for openpty in -lutil
configure:3704: gcc -o conftest conftest.c -lutil -lm 1>&5
configure:3739: checking for openpty
configure:3767: gcc -o conftest conftest.c -ldl -lieee -lm 1>&5
/tmp/ccUfNGvd.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3744 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3790: checking for openpty in -lutil
configure:3809: gcc -o conftest conftest.c -lutil -ldl -lieee -lm 1>&5
configure:3841: checking for openpty
configure:3869: gcc -o conftest conftest.c 1>&5
/tmp/cc6naHWN.o(.text+0x1d): In function `main':
: undefined reference to `openpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3846 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char openpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char openpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_openpty) || defined (__stub___openpty)
choke me
#else
openpty();
#endif
; return 0; }
configure:3892: checking for openpty in -lutil
configure:3911: gcc -o conftest conftest.c -lutil 1>&5
configure:3949: checking if running Sequent running SVR4
configure:3963: checking for sys/sysmacros.h
configure:3973: gcc -E conftest.c >/dev/null 2>conftest.out
configure:3999: checking for stdlib.h
configure:4009: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4036: checking for inttypes.h
configure:4046: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4076: checking for varargs.h
configure:4086: gcc -E conftest.c >/dev/null 2>conftest.out
In file included from configure:4082:
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/varargs.h:4:2: #error "GCC no longer implements <varargs.h>."
/usr/lib/gcc/i386-redhat-linux/3.4.6/include/varargs.h:5:2: #error "Revise your code to use <stdarg.h>."
configure: failed program was:
#line 4081 "configure"
#include "confdefs.h"
#include <varargs.h>
configure:4112: checking for unistd.h
configure:4122: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4150: checking for sys/stropts.h
configure:4160: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4187: checking for sys/sysconfig.h
configure:4197: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4193:27: sys/sysconfig.h: No such file or directory
configure: failed program was:
#line 4192 "configure"
#include "confdefs.h"
#include <sys/sysconfig.h>
configure:4223: checking for sys/fcntl.h
configure:4233: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4259: checking for sys/select.h
configure:4269: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4295: checking for sys/time.h
configure:4305: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4331: checking for sys/ptem.h
configure:4341: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4337:22: sys/ptem.h: No such file or directory
configure: failed program was:
#line 4336 "configure"
#include "confdefs.h"
#include <sys/ptem.h>
configure:4367: checking for sys/strredir.h
configure:4377: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4373:26: sys/strredir.h: No such file or directory
configure: failed program was:
#line 4372 "configure"
#include "confdefs.h"
#include <sys/strredir.h>
configure:4403: checking for sys/strpty.h
configure:4413: gcc -E conftest.c >/dev/null 2>conftest.out
configure:4409:24: sys/strpty.h: No such file or directory
configure: failed program was:
#line 4408 "configure"
#include "confdefs.h"
#include <sys/strpty.h>
configure:4440: checking for sys/bsdtypes.h
configure:4492: checking for memmove
configure:4520: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4504: warning: conflicting types for built-in function 'memmove'
configure:4543: checking for sysconf
configure:4571: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4594: checking for strftime
configure:4622: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4606: warning: conflicting types for built-in function 'strftime'
configure:4645: checking for strchr
configure:4673: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4657: warning: conflicting types for built-in function 'strchr'
configure:4696: checking for timezone
configure:4724: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4747: checking for siglongjmp
configure:4775: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4802: checking for memcpy
configure:4814: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4836: checking if WNOHANG requires _POSIX_SOURCE
configure:4854: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 4842 "configure"
#include "confdefs.h"
#include <sys/wait.h>
main() {
#ifndef WNOHANG
return 0;
#else
return 1;
#endif
}
configure:4874: checking if any value exists for WNOHANG
configure:4897: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4930: checking union wait
configure:4944: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4974: checking mask type of select
configure:4988: checking if signals need to be re-armed
configure:5033: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:4997:1: warning: "RETSIGTYPE" redefined
In file included from configure:4994:
confdefs.h:3:1: warning: this is the location of the previous definition
configure: In function `main':
configure:5016: warning: passing arg 2 of `signal' from incompatible pointer type
configure:5019: warning: passing arg 2 of `signal' from incompatible pointer type
configure: failed program was:
#line 4994 "configure"
#include "confdefs.h"
#include <signal.h>
#define RETSIGTYPE
int signal_rearms = 0;
RETSIGTYPE
child_sigint_handler(n)
int n;
{
}
RETSIGTYPE
parent_sigint_handler(n)
int n;
{
signal_rearms++;
}
main()
{
signal(SIGINT,parent_sigint_handler);
if (0 == fork()) {
signal(SIGINT,child_sigint_handler);
kill(getpid(),SIGINT);
kill(getpid(),SIGINT);
kill(getppid(),SIGINT);
} else {
int status;
wait(&status);
unlink("core");
exit(signal_rearms);
}
}
configure:5064: checking if on Convex
configure:5083: checking if on NeXT
configure:5094: checking if on HP
configure:5104: checking sane default stty arguments
configure:5122: checking for HP style pty allocation
configure:5136: checking for HP style pty trapping
configure:5139:23: sys/ptyio.h: No such file or directory
configure:5160: checking for AIX new-style pty allocation
configure:5172: checking for SGI old-style pty allocation
configure:5189: checking for SCO style pty allocation
configure:5206: checking for SVR4 style pty allocation
configure:5215: checking for libpts=-lpt in -lpt
configure:5234: gcc -o conftest conftest.c -lpt -lm -lutil 1>&5
configure:5227: error: called object is not a function
configure: In function `main':
configure:5230: error: called object is not a function
configure: failed program was:
#line 5223 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char libpts="-lpt"();
int main() {
libpts="-lpt"()
; return 0; }
configure:5255: checking for ptsname
configure:5283: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5305: checking for ptsname
configure:5354: checking for ptsname
configure:5409: checking for OSF/1 style pty allocation
configure:5423: checking for tcgetattr
configure:5451: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5471: checking for tcsetattr
configure:5499: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5531: checking for struct sgttyb
configure:5547: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: In function `main':
configure:5542: error: storage size of 'tmp' isn't known
configure: failed program was:
#line 5537 "configure"
#include "confdefs.h"
#include <sgtty.h>
main()
{
struct sgttyb tmp;
exit(0);
}
configure:5576: checking for struct termio
configure:5591: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5613: checking for struct termios
configure:5633: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5655: checking if TCGETS or TCGETA in termios.h
configure:5677: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5661 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <termios.h>
main() {
#if defined(TCGETS) || defined(TCGETA)
return 0;
#else
return 1;
#endif
}
configure:5697: checking if TIOCGWINSZ in termios.h
configure:5719: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5703 "configure"
#include "confdefs.h"
/* including termios.h on Solaris 5.6 fails unless inttypes.h included */
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <termios.h>
main() {
#ifdef TIOCGWINSZ
return 0;
#else
return 1;
#endif
}
configure:5740: checking for Cray-style ptys
configure:5759: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: failed program was:
#line 5747 "configure"
#include "confdefs.h"
main(){
#ifdef CRAY
return 0;
#else
return 1;
#endif
}
configure:5784: checking for select
configure:5812: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5832: checking for poll
configure:5860: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:5880: checking event handling
configure:5902: checking for _getpty
configure:5930: gcc -o conftest conftest.c -lm -lutil 1>&5
/tmp/ccUENtdY.o(.text+0x1d): In function `main':
: undefined reference to `_getpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5907 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char _getpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char _getpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub__getpty) || defined (__stub____getpty)
choke me
#else
_getpty();
#endif
; return 0; }
configure:5957: checking for getpty
configure:5985: gcc -o conftest conftest.c -lm -lutil 1>&5
/tmp/ccQ2rZNw.o(.text+0x1d): In function `main':
: undefined reference to `getpty'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5962 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char getpty(); below. */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char getpty();
int main() {
/* The GNU C library defines this for functions which it implements
to always fail with ENOSYS. Some functions are actually named
something starting with __ and the normal name is an alias. */
#if defined (__stub_getpty) || defined (__stub___getpty)
choke me
#else
getpty();
#endif
; return 0; }
configure:6012: checking whether setpgrp takes no argument
configure:6040: gcc -o conftest conftest.c -lm -lutil 1>&5
configure: In function `main':
configure:6032: error: too many arguments to function `setpgrp'
configure: failed program was:
#line 6020 "configure"
#include "confdefs.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/*
* If this system has a BSD-style setpgrp, which takes arguments, exit
* successfully.
*/
main()
{
if (setpgrp(1,1) == -1)
exit(0);
else
exit(1);
}
configure:6068: checking for SV-style timezone
configure:6087: gcc -o conftest conftest.c -lm -lutil 1>&5
configure:6133: checking for Tk private headers
configure:6204: checking for tk.h
configure:6214: gcc -E conftest.c >/dev/null 2>conftest.out
configure:6210:16: tk.h: No such file or directory
configure: failed program was:
#line 6209 "configure"
#include "confdefs.h"
#include <tk.h>
configure:6313: checking for long file names
configure:6370: checking for type of library to build

Please suggest me some solution.
Regards,
MK

finding cpu information on vio client

UNIX.com - 7 hours 50 min ago
Hi,

I am having single p series blade with Single Physcial CPU with dual core,

on that vio server is installed, I have created vio client allocate 0.9 each cpu , now when I am running prtconf command on vio client it is showing "2" no of processor,

My query using which command it will show original no of cpu i.e 0.9

Regards,

Manoj

dpkg wildcards

UNIX.com - 8 hours 11 min ago
Are there different rules with wildcards in dpkg? I was looking at this.
Getting information about packages
Code: %  dpkg -l \*apt\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name              Version          Description
+++-=================-=================-=============================================================
ii  apt              0.3.19            Advanced front-end for dpkg
ii  apt-move          3.0-13            Move cache of Debian packages into a mirror hierarchy
ii  aptitude          0.0.4a-4.1        Console based apt frontend
un  libapt-pkg-dev    <none>            (no description available)
un  libapt-pkg-doc    <none>            (no description available)
un  libapt-pkg2.7    <none>            (no description available)
pn  task-laptop      <none>            (no description available) I thought with the it used this command that it would treat the "*" as a literal "*" and not a wildcard. I thought the "\" takes away special meanings. Could anyone explain why this is happening? I put that command in terminal with and without the "\" and I got the same thing both times. I would think with the way it is put that it would look for "*apt*". Code: dpkg -l \*apt\*

user simple password SLES

UNIX.com - 8 hours 31 min ago
Hello,

I would like to change a password of a user to a simple one but when i try to add an only lowercase pass i get the error:
HTML Code: Weak password: too short.
Try again.

You can now choose the new password.

A valid password should be a mix of upper and lower case letters,
digits, and other characters.  You can use an 8 character long
password with characters from at least 3 of these 4 classes.
An upper case letter that begins the password and a digit that
ends it do not count towards the number of character classes used. How can i change this policy?

Thanks in advance

Need Job in AIX L1 Team

UNIX.com - 8 hours 59 min ago
Hi Guys,

I am Praveen. I completed certification in System P Administration in AIX 5.3. I have experience of working AIX System admin for 6 months. But i know 6 months is not at all enough to cover at least 50% of Ocean. Can Anyone help me to get a job in AIX System administrator in Level 1 Team. Please guys its Urgent. I need to know much about AIX.
I have attached my resume with this mail too.
I am Eagerly waiting for Positive reply from you Guys.


Yours Truly
S.Praveen
Attached Files Resume.doc (31.0 KB)

Manuales de LN Finanzas

Baanboard.com - 9 hours 7 min ago
Forum: Forum español Posted By: EinleeR Post Time: 3rd September 2010 at 17:11

How to select 1st record in grid on session startup

Baanboard.com - 9 hours 7 min ago
Forum: Tools Development Posted By: aamir_faried Post Time: 3rd September 2010 at 16:52

BKDR_SMALL.LEC

UNIX.com - 10 hours 12 min ago
Malware: BKDR_SMALL.LEC

More...

TROJ_FAKETM.A

UNIX.com - 10 hours 12 min ago
Malware: TROJ_FAKETM.A

More...
  • « 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

  • Check when password expires
  • script that will automatically extract
  • HOWTO plug server into infrastructure
  • problem with echo inserting single quotes
  • using awk to print absolute value
more

  • home
  • contact
  • services
  • baanboard
  • msx