10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
function user {
sqlplus primeit@$ORACLE_SID/primeit <<EOF
select user_name from test;
EOF
}
function gen {
genpwdfile dec -in $1 -out $2
echo $1
echo $2
}
function reset {
sqlplus primeit@$ORACLE_SID/primeit... (7 Replies)
Discussion started by: ripudaman.singh
7 Replies
2. Shell Programming and Scripting
Hello. I run the following command to get data from a logfile:
nawk 'BEGIN {FS="|"} {if ($6=="sonusSgxConfigurationErrorNotification") print ":" $10 ":" $11}' sonustrap.log | nawk 'BEGIN {FS=":"} {print $3 $5}'
This command is 'static' from the .log file, however I wanted tail -f this and... (3 Replies)
Discussion started by: lennys26
3 Replies
3. Shell Programming and Scripting
Hi All
I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error.
#!/bin/ksh
#-------------------------------------------------------------------------
# File: ang_stdnld.ksh
#
# Desc: UNIX shell script to extract Store information.... (3 Replies)
Discussion started by: amitsinha
3 Replies
4. Shell Programming and Scripting
Hello Everyone,
I don't know what is wrong with this:
Is it that nawk cannot run a ".sh" script or is it not treating "." as a literal. If so how to make "." be treated as a literal in "nawk" statemnts?
Thanks in Advance (2 Replies)
Discussion started by: bhaire
2 Replies
5. Shell Programming and Scripting
Help please! :confused:
I have the following error with the following file and the emails are not arriving to the email, any idea please?
ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected.
FECHA=`date +%d%m%y%H%M`... (2 Replies)
Discussion started by: villenan
2 Replies
6. Shell Programming and Scripting
hi ,
while running this script i am getting below error:
Syntax error at line 11 : `for' is not matched.
here is program:
#! /bin/ksh
sqlplus -s << !+!
user/password
update GR_SUB_SCRIPT_PC set act_del_ind='0';
commit;
exit;
!+!
cd /home/salunke/pvcsfiles/source_files
for i in... (5 Replies)
Discussion started by: digambar
5 Replies
7. UNIX for Dummies Questions & Answers
Hi
I am having a shell script load_data.sh which calls /home/users/project/.profile. When am executing the script, am getting below error:
$sh -x bin/load_data.sh null
+ . /home/users/project/.profile
bin/load_data.sh: syntax error at line 8: `(' unexpected
The line which is throwing... (1 Reply)
Discussion started by: brijesh.dixit
1 Replies
8. Shell Programming and Scripting
I have following problem! If i trie to execute this command:
nawk '{system("/opt/EMCpower/bin/emcpadm renamepseudo -f d -s "$1" -t "$2")}' ${filestart}$1${fileend}
where ${filestart}$1${fileend} is a filename and $1 and $2 is the first and second column of the file! I get the following error... (6 Replies)
Discussion started by: Helmut
6 Replies
9. Programming
I compiled C program under SUN OS sparcv9 ...I had a problem related to SIGBUS which has been resolved by adding an option to the CC compiler which is memory alignement option ..-memalign=1i as I remmber ...after running the program I got the below error please let me KNow more details what should... (2 Replies)
Discussion started by: atiato
2 Replies
10. Shell Programming and Scripting
Hi There,
I have a cron script that returns the error:
syntax error on line 1, teletype
Has any one seen this, know what it is, or know's how to get rid of it?
Thanks,
Jeremy. (1 Reply)
Discussion started by: KokoPops
1 Replies