10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi
I have written below log monitoring script to egrep multiple words and redirect the output to a text file and its working fine but I want to add some more below given functionality to it, which is very advance and im not very good in it, so please help if you can :)
I am egrepping all the... (1 Reply)
Discussion started by: scazed
1 Replies
2. Shell Programming and Scripting
Hi
What I'm trying to do(manually) is logging into the server
and running the below mentioned commands
ls /sys/class/scsi_device/ | while read i; do echo "- - -" > /sys/class/scsi_device/$i/device/rescan;done
lsblk
echo -e "o\nn\np\n1\n\n\nw" | fdisk /dev/sdd
partx -a /dev/sdd1... (7 Replies)
Discussion started by: James0806
7 Replies
3. Shell Programming and Scripting
Is there any way I can do scan of log file in Linux, where the log file entries for last 15 minutes can be searched for a particular pattern.
The log file entries are in below format.
2014-01-27T23:08:53.924-0500 LDAP authentication error
2014-01-27T23:08:53.934-0500 LDAP authentication... (4 Replies)
Discussion started by: anandrudran
4 Replies
4. Shell Programming and Scripting
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
Discussion started by: ketanraut
9 Replies
5. Shell Programming and Scripting
Hi everyone.
I am still new to UNIX, and am having trouble figuring out how to create a script to scan a log file to look for errors based on a string.
We run AIX 5.3, and would like the ability to report all the instances of WebSphere Broker Execution groups crashing. This script would... (8 Replies)
Discussion started by: jimbojames
8 Replies
6. Shell Programming and Scripting
I need to read the last line of a log file and save it, sleep for X minutes and read the last line again. If the line is the same, exit 1, otherwise sleep for X minutes until the last line contains 'Status: Process completed'. Can anyone offer advice here? Thanks. (2 Replies)
Discussion started by: mode09
2 Replies
7. UNIX for Dummies Questions & Answers
Hi
i have a log file, which keeps appending, i want to find "exceptions" in that log file and copy those exceptions to another file.
i am using
grep exception filename >> location where to copy
but as the file is appending, am not able to view.
i am using
tail -f command ,
... (5 Replies)
Discussion started by: rchaitanya
5 Replies
8. Shell Programming and Scripting
hi guys,
i am very new to scripting & lookin for a shell script/perl script which would scan another file with the keyword "no change" & take a count of the same. Let me know if any further details are required. (3 Replies)
Discussion started by: nhanda
3 Replies
9. Shell Programming and Scripting
Hello,
Im new to shell scripting , and i have the following question .
The hcitool scan command returns the bluetooth address of the phone . When it is run the output is something like
Scanning....
00:A1:5D:AB:B2:E9 Nokia 6600
Can i get the output in a varaiable in a... (1 Reply)
Discussion started by: rahulkhn
1 Replies
10. Shell Programming and Scripting
Hi,
Can any one please suggest me commands for making port scan shell script. (3 Replies)
Discussion started by: nrbhole
3 Replies