Search Results

Search: Posts Made By: ranj@chn
Forum: AIX 06-30-2011
4,767
Posted By ranj@chn
Thanks!
Thanks Zaxxon! I will go through it and come back with any questions. :)
Forum: AIX 06-30-2011
4,767
Posted By ranj@chn
AIX Server - Need to set up VMWare
Hi experts,

We are faced with a dilemma - we have a AIX server for educational purposes. We had some Oracle applications running on them. The management decided not to extend the warranty, so we...
6,571
Posted By ranj@chn
All set up fine
Hi Gaurav,

There are no rules in iptables and the interface is also up.
[root@shk-oratestintegration01 ~]# /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source ...
6,571
Posted By ranj@chn
Not registered
No Gaurav.

The opmn service is not registered in both the servers.

-Ranj
6,571
Posted By ranj@chn
opmn service listening to external connections - issue
Hello Gentlemen,

Its been a looong time I have posted here. I need a clarification. We started up the OPMN service (for Oracle App server) on Linux box. The service was supposed to listen on port...
2,378
Posted By ranj@chn
just tweak it
awk '{printf("%s | %s %s|\n", $1,$4,$5); }' filename

Note: Only if the file has the same fixed no of fields.
4,711
Posted By ranj@chn
check this
I am not sure if I got your problem right or not. Try this -
#!/bin/ksh
find $CA_OUT_PATH/*/ftp_out -type f -mtime -200 |\
while read file
do
echo `basename $file`$(date +"%Y%m%d%H%M") | read...
6,000
Posted By ranj@chn
oracle_home
What errors do you get? Have you checked the logs? Probably sqlplus path is not defined and also, make sure that the ORACLE_HOME path is defined.
Define this in your script.
export...
2,254
Posted By ranj@chn
empty file
if [[ ! -s $filename ]]
then
echo "file is empty"
exit -1
fi
2,096
Posted By ranj@chn
check this
awk -F, 'NR==FNR {a[$1]=$0} NR!=FNR{print a[$1]}' file2 file1 | sed '/^$/d' where,
file2 --> the second file
file1 --> the first file
5,764
Posted By ranj@chn
search first
Do a google first. Check awk (http://people.cs.uu.nl/piet/docs/nawk/nawk_toc.html) and grep (http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+grep). Also, do a man awk or man grep on your Unix box.
6,444
Posted By ranj@chn
$#
$# tells the no of arguments passed to the script. Since, in your case you have passed 2 arguments, the first "if" condition gets satisfied and the error message gets thrown.

So, if you want to...
1,573
Posted By ranj@chn
try this
awk -F, '{printf("%s,%.2f\n",$0,$NF/2) }' inp.txt
6,444
Posted By ranj@chn
how are you executing?
Are you passing any arguments when running the script? The error points to no args passed to the script. Instead of the below logic, see if this helps -
if [[ $# -ne 1 ]]
then
echo "Wrong usage"...
2,254
Posted By ranj@chn
see if this logic helps
#!/bin/ksh
check for control file. if empty then proceed from STEP 1;
if it exists check the last entry & continue ur processing from the next step

status=0
##first set of actions##
if success...
4,643
Posted By ranj@chn
file permission
For a single file, the script/application that drops the file in that directory should make sure that the file has the right permissions. umask affects all the subsequent file creations and so is not...
4,154
Posted By ranj@chn
Already answered
Its answered here - link (https://www.unix.com/unix-dummies-questions-answers/537-difference-between-source-exec-script.html)
Sourcing a script runs the script in the current shell. So, any changes...
1,934
Posted By ranj@chn
Correction
if I am in a directory where I have full read/write/execute permissions, I should be able to delete the file even if I am not owner of that file.
rkumar@bdc4reteaix1w: /home/rkumar/unix_forum...
3,092
Posted By ranj@chn
check script
man script (http://unixhelp.ed.ac.uk/CGI/man-cgi?script)
3,204
Posted By ranj@chn
modify PATH
Try modifying the PATH variable. if you are calling script2 from script1 like this
$> cat script1.sh
#!/bin/ksh
export PATH=/some/user/dir
script2.sh args

then, changing PATH wont be a...
4,266
Posted By ranj@chn
awk one
awk 'FNR==NR {a[NR]=$0} FNR!=NR {if(a[FNR]!=$0) print a[FNR]}' file2 file1
3,852
Posted By ranj@chn
sort
sort -t '~' +2 -r input.lst >> output.lst
2,262
Posted By ranj@chn
check grep options
grep -w 6710
24,429
Posted By ranj@chn
unzip and use awk
First unzip the .gz file and send the contents to awk. I think you cannot awk a '.gz' file. Awk may not recognise the format of the data in the .gz file.
2,785
Posted By ranj@chn
awk version
awk -f test.awk testfile.datwhere test.awk contains,
NR==1 {old_cnt=split($0,old_arr,"[ \t]");}

NR!=1 {
new_cnt=split($0,new_arr,"[ \t]");
for(i=2;i<=old_cnt;i++)
for(j=2;j<=new_cnt;j++)
{...
Showing results 1 to 25 of 360

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