Sponsored Content
Top Forums Shell Programming and Scripting Very Urgent Query... PLease help me Post 302489871 by jojo123 on Saturday 22nd of January 2011 06:22:44 AM
Old 01-22-2011
Very Urgent Query... PLease help me

Dear All,

I need an output file in a way as described below

Quote:
0:00|
0:30|
1:00|
1:30|
2:00|
2:30|
3:00|
3:30|
4:00|
4:30|
5:00|
5:30|
6:00|
6:30|
7:00|
7:30|
8:00|
8:30|
9:00|
9:30|
10:00|
10:30|
11:00|
11:51|
12:00|
12:30|
12:45|
13:30|
14:06|
14:07|
15:00|
15:30|
16:00|
16:30|
17:00|
17:30|
18:00|
18:30|
19:00|
19:30|
20:00|
20:30|
21:00|
21:30|
22:00|
22:30|
23:00|
23:30|
24:00|
the above data should be static i.e. will remain the same

and the second feild will print a value comming from another script as per time (please note script will be scheduled for 30 min interval in crontab, so it will run at specified time) and should print data corresponding to time and make a file, now the problem is when the script reruns after 30 min it writes a value but remove the histroy data wheras i want the history data also as mentioned below

Quote:
0:00|
0:30|
1:00|
1:30|
2:00|
2:30|
3:00|
3:30|
4:00|
4:30|
5:00|
5:30|
6:00|
6:30|
7:00|
7:30|
8:00|
8:30|
9:00|
9:30|
10:00|
10:30|
11:00|
11:51|
12:00|
12:30|
12:45|
13:30|
Quote:
14:06|99|
14:07|97|
and so on till end
15:00|
15:30|
16:00|
16:30|
17:00|
17:30|
18:00|
18:30|
19:00|
19:30|
20:00|
20:30|
21:00|
21:30|
22:00|
22:30|
23:00|
23:30|
24:00|
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Urgent - help please

i have the below script grep `basename $fname | cut -c2-5` $STORE_LIST` >> all cat $fname >> all the output comes in two line..i want the same output above to come in single line ..can someone help (5 Replies)
Discussion started by: mkan
5 Replies

2. UNIX for Advanced & Expert Users

Urgent Awk manipulation query help

Hi UNIX gurus :) , I have the following requirement and not being able to find a solution :( . i have got a file demo.lst movies 10 12 25 songs 11 8 15 DVD 15 12 10 Total 58 60 75 NOTE:-Total value not the sum of the columns but some predefined value. My... (5 Replies)
Discussion started by: rahul26
5 Replies

3. UNIX for Advanced & Expert Users

URGENT,URGENT- Need help tape drive installation

Hi, I am trying to attach tape drive to sun V890 running Solaris 9 on it. I have installed HBA(qlogic) in slot 1 of 0-8 slots and booted the system. I do not see HBAin prtdiag output. The tape drive is not attached to HBA. The tape drive I am going to attach is Sony AIT3. 1.How can I make... (3 Replies)
Discussion started by: sriny
3 Replies

4. Solaris

Its Urgent

Hi, When i am trying to install signalware stack in solaris 10, i am getting the error "remote shell error, 'rsh -n". can anyone help me on this Regards, Rajesh (1 Reply)
Discussion started by: grrajeish
1 Replies

5. Shell Programming and Scripting

how to convert the result of the select query to comma seperated data - urgent pls

how to convert the result of the select query to comma seperated data and put in a .csv file using korn shell. Pls help me as its very urgent. Thanks, Hema. (1 Reply)
Discussion started by: Hemamalini
1 Replies

6. Shell Programming and Scripting

add the output of a query to a variable to be used in another query

I would like to use the result of a query in another query. How do I redirect/add the output to another variable? $result = odbc_exec($connect, $query); while ($row = odbc_fetch_array($result)) { echo $row,"\n"; } odbc_close($connect); ?> This will output hostnames: host1... (0 Replies)
Discussion started by: hazno
0 Replies

7. Shell Programming and Scripting

Query Oracle tables and return values to shell script that calls the query

Hi, I have a requirement as below which needs to be done viz UNIX shell script (1) I have to connect to an Oracle database (2) Exexute "SELECT field_status from table 1" query on one of the tables. (3) Based on the result that I get from point (2), I have to update another table in the... (6 Replies)
Discussion started by: balaeswari
6 Replies

8. Shell Programming and Scripting

Shell Script to execute Oracle query taking input from a file to form query

Hi, I need to query Oracle database for 100 users. I have these 100 users in a file. I need a shell script which would read this User file (one user at a time) & query database. For instance: USER CITY --------- ---------- A CITY_A B CITY_B C ... (2 Replies)
Discussion started by: DevendraG
2 Replies

9. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
ppmtopgm(1)                                                   General Commands Manual                                                  ppmtopgm(1)

NAME
ppmtopgm - convert a portable pixmap into a portable graymap SYNOPSIS
ppmtopgm [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces a portable graymap as output. The output is a "black and white" rendering of the original image, as in a black and white photograph. The quantization formula used is .299 r + .587 g + .114 b. Note that although there is a pgmtoppm program, it is not necessary for simple conversions from pgm to ppm , because any ppm program can read pgm (and pbm ) files automatically. pgmtoppm is for colorizing a pgm file. Also, see ppmtorgb3 for a different way of converting color to gray. And ppmdist generates a grayscale image from a color image, but in a way that makes it easy to differentiate the original colors, not necessarily a way that looks like a black and white photograph. QUOTE
Cold-hearted orb that rules the night Removes the colors from our sight Red is gray, and yellow white But we decide which is right And which is a quantization error. SEE ALSO
pgmtoppm(1),ppmtorgb3(1),rgb3toppm(1),ppmdist(1),ppm(5),pgm(5) AUTHOR
Copyright (C) 1989 by Jef Poskanzer. 10 April 2000 ppmtopgm(1)
All times are GMT -4. The time now is 02:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy