01-22-2009
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:confused:Hi ,
I have a script as shown below:
rpttxt()
{
name="$*"
awk '/'"${name}"'/ {print $2 $3"=" $4}' file.txt
}
xx = rpttxt "COL_HEAD_1"
awk 'BEGIN {printf("%36s \n ","'"$xx"'")}'
rpttxt() is a function..I want to store the final result of this function in... (3 Replies)
Discussion started by: jisha
3 Replies
2. Shell Programming and Scripting
Hey guys.!
Need some help.I want to write a script , which should be continuosly running and should keep calling a function after every say 5 or 10 seconds.
I am done with almost all part of it, but figuring out how to keep the script continuosly running and how to keep calling a function after... (11 Replies)
Discussion started by: nua7
11 Replies
3. Shell Programming and Scripting
hi,
I am new to scripting and need your help to debug .
Here is my goal, I need to collect text,validate it and say if there is any error .below is the code
validate_fn()
{
awk ' ....
END {
if(condition)
return 0
... (2 Replies)
Discussion started by: rider29
2 Replies
4. Shell Programming and Scripting
There is a function called start:
start()
{
echo -n $"Sending Startup Email: "
echo "${RESTARTBODY}" | mutt -s "${RESTARTSUBJECT}" ${EMAIL}
RETVAL=$?
if ; then
touch ${LOCKFILE}
success
else
failure
fi
echo
return ${RETVAL}
}
Can anyone explain what the bold part of the... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
5. Shell Programming and Scripting
So, in Oracle (11gR2) on aix I have a function like:
CREATE OR REPLACE function COMMON.t2(var1 in varchar2, vari in number,var2 in out number) return number as
begin
insert into korisnik_temp(kor_inicia, kor_opisno) values(1, var1);
var2:=0;
return var2;
exception
when... (12 Replies)
Discussion started by: bongo
12 Replies
6. Shell Programming and Scripting
Hi,
Please see contains both files created for automating the data from oracle through shell.
1)a_p.ksh
#!/bin/ksh
LOG=/home/A_P.log
MESSAGE=/home/MESSAGE_A_P.txt
mail_list=/home/AP_MAIL_LIST.txt
data=/home/spooled_A_P.log
echo "`date` Starting execution for A_P COUNT" > $LOG
... (2 Replies)
Discussion started by: fidelis
2 Replies
7. Shell Programming and Scripting
Hello,
I am new to UNIX.
My Requirement: Need to connect to Oracle database from UNIX and execute an SELECT statement and store the records in a flatfile of Comma delimiter.
What I have Succeeded: I was able to connect to Oracle from UNIX.
Problem: I cannot fetch multiple... (3 Replies)
Discussion started by: arunvasu2
3 Replies
8. Solaris
Hi,
I am calling database package from Pro*C program.
It is giving me the error
ORA-01426 : numeric overflow.
my package function is having all arguments with char or varchar variable.
int retval := pkg1.func1(arg1 varchar(3), arg2 char(8));
In this call only numeric variable is... (7 Replies)
Discussion started by: user270885
7 Replies
9. Shell Programming and Scripting
$ ps -ef | grep pmon | grep -v grep | awk '{ print $8 }' | cut -d '_' -f3
abc1
abc2
abc3
abc4
abc5
+ASM1
Please use code tags
from above output i am looking exclude +ASM output and restout put is fine , also when i select any output and if is invalid from above output, shell script... (12 Replies)
Discussion started by: amar1208
12 Replies
LEARN ABOUT DEBIAN
update-notifier
UPDATE-NOTIFIER(1) Update Notifications UPDATE-NOTIFIER(1)
NAME
update-notifier - daemon which notifies about package updates.
SYNOPSIS
update-notifier [OPTIONS...]
DESCRIPTION
update-notifier puts an icon in the user's notification area when package updates are available.
OPTIONS
-h, --help
Shows help options.
--debug-hooks
Enable hooks debugging.
--debug-updates
Enable updates/autolaunch debugging.
--debug-inotify
Enable inotify debugging.
--debug-firmware
Enable firmware debugging.
--force
Force start even if the user is not in the admin group.
--force-use-gksu
Force running all commands (update-manager, synaptic) with gksu.
--startup-delay
Delay startup by given amount of seconds.
--display=DISPLAY
X display to use.
In addition, the usual GTK+ and GNOME command line options apply. See the output of --help for details.
SEE ALSO
update-manager(8), synaptic(8)
AUTHOR
This manual page was written by Vincent Cheng <Vincentc1208@gmail.com>, for the Debian project (and may be used by others).
0.99.3 November 2010 UPDATE-NOTIFIER(1)