10 More Discussions You Might Find Interesting
1. SuSE
Hello Experts,
I need your inputs to figure out the issue I faced post applying Linux patch.
Question:
As a part of change implementation UNIX team applied patches and upgraded OS from version SuSE Linux 11.2.3 to 11.3.6. Post upgrade we could bring up Tomcat successfully; however... (0 Replies)
Discussion started by: MaheshChaudhari
0 Replies
2. Shell Programming and Scripting
Hi,
I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database.
For instance:
USER CITY
--------- ----------
A CITY_A
B CITY_B
C ... (2 Replies)
Discussion started by: DevendraG
2 Replies
3. Shell Programming and Scripting
Hi Admins,
I was trying to list the failed logins as part of my daily checklist.
Here is my script
for i in `who -s /etc/security/failedlogins|tail -100|grep "$dt"|awk '{print $1" "$6}'`
do
a=`echo $i|wc -l`
if
then
echo $i
else
echo "There are no failed logins"
fi
done
but... (3 Replies)
Discussion started by: newaix
3 Replies
4. Shell Programming and Scripting
Hi,
I have a requirement as below which needs to be done viz UNIX shell script
(1) I have to connect to an Oracle database
(2) Exexute "SELECT field_status from table 1" query on one of the tables.
(3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies
5. Shell Programming and Scripting
hi all
i have a shell script for connecting in sybase env what i need is i have around 10 servers , i need to connect to all servers and retrive the database inforamtion in the servers and display them
any one of u have it request to share it asap !
"QUERY TO Connect to all servers... (1 Reply)
Discussion started by: mvsramarao
1 Replies
6. Shell Programming and Scripting
query sql using shell script, is it possible?
my friend told me to do a file.sql and link to my shell script, but can i query sql using shell script?
thanks in advance! (2 Replies)
Discussion started by: kingpeejay
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am stuck assigning a value to a variable.
I am trying to assign a value to a variable but getting error....
IP_ADDR=grep 'I.P. Address' /install/cfgdist/`uname -n`.cfg | cut -d : -f 2| cut -d . -f 1-3| sed s/" "//g
I am using this script to grep first three octets of an IP address... (4 Replies)
Discussion started by: max29583
4 Replies
8. Shell Programming and Scripting
Hi
I need a small help
Cshell% more abc.txt
********
Cshell% cat abc.txt | cut -c1-3
***
Cshell%set test3=`cat abc.txt | cut -c1-3`
Cshell%echo $test3
a.txt b.txt.................
.....
It displays all the file in the current directory.
I want *** to be displayed.
Can any one of... (1 Reply)
Discussion started by: bpupdown
1 Replies
9. Shell Programming and Scripting
Hi
I have an input to a file. I want the script to return it formatted
the input is a number, say ,
1234567895 and the output should be 21 43 65 87 59 ,ie, the pair of two digits should be reversed.
How can I do this using a shell script? (1 Reply)
Discussion started by: gopsman
1 Replies
10. Shell Programming and Scripting
Hello people,
I am new to shell scripting and hoping to get a quick answer to my query.
I am writing a simple script which needs to call an executale which generates an output file. Once the output file is generated I have to do a couple of more task with that file. The executable ideally... (1 Reply)
Discussion started by: tipsy
1 Replies