This (takes the output of "ps -ef" and) prints all the lines containing "logger" except those which contain "grep" too. As far as i can see there is no grep process running up to this point. Probably you filtered the lines with "grep" before but switched to "sed". You should change the command accordingly to:
In this case you could also skip the next command where you filter out "loggermail", use sed for awk's task and combine this to one command, arriving at the following line:
Hi,
I am porting one shell script from Linux to AIX. I had .ksh file and i have changed it to .sh file for aix. on linux this script is running fine but on aix it gives me "unexpected end of file" error.
Could any one suggest me what to do to port this script error free?
Thanks in... (6 Replies)
Ho do I find out the verion of the Kron shell on my client`s system ?
There is no one to ask. They are not knowledged enough (hard to believe but yes).
Also, on that AIX 4.2, I am trying to figure out how to do a grep using a search patter like below but does not seam to work. The '*' do... (11 Replies)
Hi!
I have made a simple script for writing the following line on a file (file.txt):
list= 1 2 3
and thr script looks like this:
N=3
ll=(1 2 3)
echo -n "list= ">> file.txt
j=0
while ; do
echo -n ${ll}" ">> file.txt
let j++
done
The code works fine on Linux,... (3 Replies)
Hi.
I created schell script for sending messages to some processes in AIX:
#!/bin/sh
BSE=/infor/ERPLN/bse
BSE_TMP=/infor/ERPLN/bse/tmp
export BSE BSE_TMP
for i in `ps -eo pid,comm | grep bshell | cut -f 1 -d " "`
do
/something $i
done
Unfortunatelly this script does not work on... (6 Replies)
Hi ,
Good Morning every one !!!
I am very new to this forum and new to Shell Script as well , hope some script Guru's will help me .
I have a requirment to write a shell script . The requirment is like this . There are couple of shell scripts scheduled in the Crontab (some scripts run... (5 Replies)
Hi All,
I am connecting from ServerA(Unix) to ServerB (AIX). Copying a Database dump file from A to B. On B i need to import that dump file.
I have used the following code to do this operation but ended up with error
Pseudo-terminal will not be allocated because stdin is not a terminal.... (2 Replies)
Hello Experts
My SAP application is running in IBM AIX. Everyday my application generate some files in the below path as below.
root@sedcaspm0502: pwd
/interfaces/RFTS/B11/archive
root@sedcaspm0502: ls -lrt
-rw-r r 1 ppgadm sapsys 1039445 May 08 01:20... (1 Reply)
Discussion started by: sundar.c79@gmai
1 Replies
LEARN ABOUT ULTRIX
zgrep
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)