Command needed in linux flavour OS


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command needed in linux flavour OS
# 1  
Old 03-02-2012
Command 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
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. UNIX for Advanced & Expert Users

Command help needed in linux flavour OS

HI, My requirement as below Log with Error 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 Starting... (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
AnyEvent::XMPP::Error::MUC(3pm) 			User Contributed Perl Documentation			   AnyEvent::XMPP::Error::MUC(3pm)

NAME
AnyEvent::XMPP::Error::MUC - MUC error Subclass of AnyEvent::XMPP::Error METHODS type This method returns either: join_timeout If the joining of the room took too long. no_config_form If the room we requested the configuration from didn't provide a data form. subject_change_forbidden If changing the subject of a room is not allowed. message_error If this is an unidentified message error. If we got a presence error the method "presence_error" returns a AnyEvent::XMPP::Error::Presence object with further details. However, this class tries to provide a mapping for you (the developer) to ease the load of figuring out which error means what. To make identification of the errors with XEP-0045 more clear I included the error codes and condition names. Here are the more descriptive types: password_required Entering a room Inform user that a password is required. (Condition: not-authorized, Code: 401) banned Entering a room Inform user that he or she is banned from the room (Condition: forbidden, Code: 403) room_locked Entering a room Inform user that the room does not exist and someone is currently creating it. (Condition: item-not-found, Code: 404) room_not_creatable Entering a room Inform user that room creation is restricted (Condition: not-allowed, Code: 405) use_reserved_nick Entering a room Inform user that the reserved roomnick must be used (Condition: not-acceptable, Code: 406) not_on_memberlist Entering a room Inform user that he or she is not on the member list (Condition: registration-required, Code: 407) nickname_in_use Entering a room Inform user that his or her desired room nickname is in use or registered by another user (Condition: conflict, Code: 409) room_full Entering a room Inform user that the maximum number of users has been reached (Condition: service-unavailable, Code: 503) The condition and code are also available through the AnyEvent::XMPP::Error::Presence object returned by "presence_error", see below. text This method returns a human readable text if one is available. presence_error Returns a AnyEvent::XMPP::Error::Presence object if this error origins to such an error and not some internal error. message_error Returns a AnyEvent::XMPP::Error::Message object if this error origins to such an error and not some internal error. AUTHOR
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>" COPYRIGHT &; LICENSE Copyright 2007, 2008 Robin Redeker, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-23 AnyEvent::XMPP::Error::MUC(3pm)