Command help needed in linux flavour OS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Command help needed in linux flavour OS
# 1  
Old 03-02-2012
Command help needed in linux flavour OS

HI,

My requirement as below

Log with Error

Code:
  [INFO 12-03-01:04:10:25] Starting FeedRunner for feed: 200  Product example Items 
[INFO 12-03-01:04:12:40] Error FeedRunner for feed: 200 Product example Items
[INFO 12-03-01:04:20:25] Stopping FeedRunner for feed : 200  Product example Items Feed time taken 231743

Log without Error
Code:
[INFO 12-03-01:04:10:25] Starting FeedRunner for feed: 200  Product example Items 
[INFO 12-03-01:04:20:25] Stopping FeedRunner for feed : 200  Product example Items Feed time taken 2743

1. What is the command to read last 15 minutes logs, for example my current time is 4:15PM and i need to read from 4:00PM to 4:15PM in the log mentioned above.

2. How to check for 3 strings using grep, for example "200|Product example|Error"

3. If 3 strings found print "success" or print "failed"

4. How to call a URL in shell script, for example "http://localhost/mcfeeds/runfeed?feedid=200"

Please help me on this

Regards
Paulwintech

Moderator's Comments:
Mod Comment Same as https://www.unix.com/unix-advanced-ex...-log-file.html

Last edited by methyl; 03-02-2012 at 08:10 AM.. Reason: duplicate thread
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux command needed

guys im new here and i need help with some linux commands. filea has keyword on each line identity aaa bbb ccc i have following commands. egrep 'www.identity' ~/home/m3 >~/home/lopo2 wc -l file ~/home/lopo2 say lopo2 has 44 lines then output saved is identity 44 (1 Reply)
Discussion started by: ahfze
1 Replies

2. Shell Programming and Scripting

Command needed in linux flavour OS

HI, My requirement as below Log with Error Code: Starting FeedRunner for feed: 200 Product example Items Error FeedRunner for feed: 200 Product example Items Stopping FeedRunner for feed : 200 Product example Items Feed time taken 231743 Log without Error Code: ... (0 Replies)
Discussion started by: Paulwintech
0 Replies

3. Post Here to Contact Site Administrators and Moderators

Most Demanding UNIX flavour

Hi Neo I am working on Red Had Linux from last 3 yrs on basic level. I want to do the UNIX admin certification ASAP. Please suggest.........Which is the most demanding flavor in market & remain demanding in future as well ??? Waiting for your early response. Thanks Tushar Joshi (1 Reply)
Discussion started by: tusharjoshi
1 Replies

4. UNIX for Dummies Questions & Answers

LINUX to UNIX... changes needed?

I developed the following in LINUX: cat monica.txt | sed 's/;;;/\n;;;/g'> fixed.txt csplit -f comment -n 4 fixed.txt '/;;;/' {*} Basically, I want it to take the file monica.txt and put every instance of ;;; on a new line and put it in fixed.txt, then split fixed.txt at every instance of ;;;... (13 Replies)
Discussion started by: mschpers
13 Replies

5. Linux

What is the difference between flavour & distribution.

Hi All, Can anyone tell me the difference between flavour & distribution? As we say that - AIX, Linux, Solaris etc are the flavours of Unix & fedora, ubuntu, suse etc are the distributions of linux. Can anyone explain me, why it is called so. Thanks in advance. Amol (6 Replies)
Discussion started by: Amol21
6 Replies

6. Shell Programming and Scripting

Command needed to Parse Catalina.out in Linux

Hi all, Everyday I used to parse the Catalina.out log file on my Redhat system for errors for a particular date. Could anybody be able to help me to create a command which can grep the contents of Catalina.out starting from particular date. Please do not suggest command which greps only the... (12 Replies)
Discussion started by: redhatperl
12 Replies

7. Shell Programming and Scripting

simple script detect to find OS version/flavour

Hi, A newbie question. Following script gives no output. =============================== root@srv # cat /etc/redhat-release | awk {'print $1}' Red root@srv # cat 123.sh if (( `cat /etc/redhat-release | awk {'print $1}'` != CentOS )); then { echo "System runs on Redhat Linux. ... (13 Replies)
Discussion started by: fed.linuxgossip
13 Replies

8. UNIX for Advanced & Expert Users

Help me to select the flavour

Hai Friends I am writing a client-server application for backup utility. The computer is used only for backup utility. We have planed to place linux operating system in it. But i am confused with lots of falvour. I don't know really which flavour of linux to use. Can you please suggest me a... (2 Replies)
Discussion started by: collins
2 Replies

9. OS X (Apple)

unix flavour on mac

I'm quite interested in resusing an old bondi iMac i have as a unix box, and i was wondering what distro people would recomend. I had thought of using BSD/FreeBSD cos thats what osx is based on. I'm doing this as a teaching excercise (for myself) so i'm looking for something achievable rather than... (9 Replies)
Discussion started by: ora
9 Replies

10. UNIX for Dummies Questions & Answers

Which flavour?

Hi folks, First post so be gentle with me :) I've decided it's about time I got down and dirty with Unix, so have jumped in at the deep end and am downloading Redhat as an option to Win2000 on my Intel machine. Should be fun (!), but if I remember right there's options of which type of... (2 Replies)
Discussion started by: clanger
2 Replies
Login or Register to Ask a Question