Very Urgent Query... PLease help me


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Very Urgent Query... PLease help me
# 1  
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|
# 2  
Old 01-22-2011
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.


Thank you.

The UNIX and Linux Forums
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
Login or Register to Ask a Question