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
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
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
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
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 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
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
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
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
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
VM(1) mgetty VM(1)
NAME
vm - VoiceModem is the program for handling the voice modem functionality from shell scripts
ACTIONS
beep options [<frequency [<length in 0.001sec>]]>
diagnostics options device name (e.g. ttyS2
dial options phone number
help
play options [<file names]+>
record options file name
shell options [<shell script [shell options]]>
wait options [<time in seconds]>
devicetest
OPTIONS
-c n use compression type n
-d n set i/o device
-t, -m, -i, -e, -s, -H equals to -d <2,3,4,5,6,7>
-l s set device string (e.g. -l ttyS2:ttyC0)
-v verbose output
-w use off / on hook signal from local handset to start and stop recording
-x n set debug level
-L n set maximum recording length in sec
-P print first DTMF tone on stdout and exit
-R read and print DTMF string on stdout and exit
-S s set default shell for shell scripts (e.g. -S /bin/sh)
-T n set silence timeout in 0.1sec
-V n set silence threshold to <n> (0-100%%)
SEE ALSO
vgetty(1)
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 30:
You forgot a '=back' before '=head1'
Around line 32:
'=item' outside of any '=over'
Around line 71:
You forgot a '=back' before '=head1'
perl v5.10.1 2010-04-04 VM(1)