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
pbmupc(1)                                                     General Commands Manual                                                    pbmupc(1)

NAME
pbmupc - create a Universal Product Code bitmap SYNOPSIS
pbmupc [-s1|-s2] type manufac product DESCRIPTION
Generates a Universal Product Code symbol. The three arguments are: a one digit product type, a five digit manufacturer code, and a five digit product code. For example, "0 72890 00011" is the code for Heineken. As presently configured, pbmupc produces a bitmap 230 bits wide and 175 bits high. The size can be altered by changing the defines at the beginning of the program, or by running the output through pnmenlarge or pnmscale. OPTIONS
The -s1 and -s2 flags select the style of UPC to generate. The default, -s1, looks more or less like this: |||||||||||||||| |||||||||||||||| |||||||||||||||| |||||||||||||||| 0||12345||67890||5 The other style, -s2, puts the product type digit higher up, and doesn't display the checksum digit: |||||||||||||||| |||||||||||||||| 0|||||||||||||||| |||||||||||||||| ||12345||67890|| SEE ALSO
pbm(5) AUTHOR
Copyright (C) 1989 by Jef Poskanzer. 14 March 1989 pbmupc(1)