10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
I am totally a newbie to any programming languages and I just started an entry level job in an IT company. One of my recent tasks is to create a script that is able to show the log file of linux service (i.e. ntpd service)
lets say, if I run my script ./test.sh, the output should be... (3 Replies)
Discussion started by: xiaogeji
3 Replies
2. Shell Programming and Scripting
Hi everyone,
Let me start by stating this question is for homework help (not "help, my boss needs this ASAP")
I have spent the last few days re-visiting this script, and cannot figure out where I am going wrong (something simple I'm sure).
I am to build a script that searches for a user... (1 Reply)
Discussion started by: jjc032681
1 Replies
3. Shell Programming and Scripting
I am new to bash scripting. I want write a script that reads from the first argument file and run nslookup, then prints out each nslookup. Something like below:
File name = ip
8.8.8.8
8.8.4.4
Bash shell script: nslookup.sh
#!/bin/bash
for i in $1
do
nslookup $i
done
I... (7 Replies)
Discussion started by: boldnbeautiful
7 Replies
4. Shell Programming and Scripting
Hi Folks,
I need to find out and trigger if the service is running to OK and not running to NOTOK. I use the below script but, its not the precise output. Anything missed out in the script:
if chkconfig --list | grep -i sendmail
then
echo " The sendmail service is not running :... (10 Replies)
Discussion started by: gsiva
10 Replies
5. Shell Programming and Scripting
Hi All,
I've had a look around the forum but cannot find any answers for what I want to do.
I have 2 files :
FILE 1
===============
ter049107
ter049048
2013-04-09 08:15:16
ter049056
ter049083
ter049112
2013-04-09 10:35:10
2013-04-09 10:29:47
2013-04-09 07:44:05
FILE 2 - note... (4 Replies)
Discussion started by: prashantv
4 Replies
6. Shell Programming and Scripting
Hi, iam new to unix scripting need a help.
The scenario is i have 2 text files.
a.txt has
colA colB colC colD
JKU1270A JKU1042A 9 1
JKU1270A JKU1042B 9 1
JKU1270A JKU1042C 9 1
JKU1270B JKU1107B 9 1
JKU1270B JKU1107C 9 1... (1 Reply)
Discussion started by: tech_frk
1 Replies
7. Shell Programming and Scripting
dear all..
need your help.. i have searching but still didn't find what i need.
i have 2 file, i want to lookup one to many, the key is $1 :
main.txt
code.txt
output.txt
thanks..
br,
herman (2 Replies)
Discussion started by: buncit8
2 Replies
8. Shell Programming and Scripting
Hi
I have one properties file containing as
$INSTALL_BASEPATH/mssages/commonmessages_default.properties
$INSTALL_BASEPATH/resource/configurationBundle.properties
and $INSTALL_BASEPATH is set in .bash_profile
but from shell script when I read this file
and use in copy statement then it... (7 Replies)
Discussion started by: mnmonu
7 Replies
9. Shell Programming and Scripting
Hello,
I wrote a basic script to query a whois server using the whois system command to retrieve information about IP's. I have file containing the ip addresses which I feed to the whois command via a while loop. This seems to work sometimes. Most of the time, the whois command seems not to... (0 Replies)
Discussion started by: aliberson
0 Replies
10. Shell Programming and Scripting
hello
I am a student taking an intro to UNIX class.
I have an assignment I am having trouble completing.
The assignment is as follows.
i have a file called .addr_book that has various names and phone numbers in it.
I need to write a script called lookup that will run like this
I... (2 Replies)
Discussion started by: tampaJim
2 Replies