10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi buddies;
i have a very strange problem. i made a script composed of just 5 line. it is containing awk and nawk codes and it is working perfectly when it is applied one-by-one (copy & paste).
but when i type run myscript.mos, it is giving:
nawk: syntax error at source line 1
context is... (5 Replies)
Discussion started by: gc_sw
5 Replies
2. Programming
for a floating-point array x whose size is n, find the geometric mean..
GM =n x1.x2.x3...xn (2 Replies)
Discussion started by: allyjaah
2 Replies
3. Programming
hello,
For school i make the next mission:
give how many chambers in a constant number. use an array which chamber is free and count how many chamber there are free. make also something to test
I don't now how to start. I need an well example so i can make the mission
thank you (1 Reply)
Discussion started by: wouter88
1 Replies
4. Shell Programming and Scripting
Is there a way you can return a value from a script that is called from a rm cobol program...
01 WS-COMD-LINE-PGM X(39) value sh ./getUserId.sh 12345"
01 WS-RETURN-SYS-CODE PIC 9(8).
CALL "SYSTEM" USING WS-COMD-LINE-PGM
GIVING WS-RETURN-SYS-CODE.
... (1 Reply)
Discussion started by: pavanmp
1 Replies
5. Programming
hello every one
i am working on a project to lock remote computer resources(hard drive, usb, cd- rom, folder etc). i have maintained connection using JAVA RMI and using JAVA JNI to lock resources, now i am really stuck up with C programme to do actual locking, i am using RHL-5 on admin computer... (7 Replies)
Discussion started by: zius_oram
7 Replies
6. Programming
can i run .crn programme in express cobol which support to .gnt programme .... Plz tell me solution (2 Replies)
Discussion started by: bibi
2 Replies
7. Shell Programming and Scripting
Hi Guyz
can u tell me how to write a programme in perl using snmpget.
Regards'
Harrr (0 Replies)
Discussion started by: Harikrishna
0 Replies
8. Programming
Dear Friends,
I ve two text files like
re_im.dat
13.7663000000 5.9572200000
10.2682000000 10.9345000000
5.0810700000 14.1132000000
two real values per row
Sarf.dat
127 128 128 128 71 0
128 128 128 128 71 0
128 128 128 128 71 0
This is having 6... (2 Replies)
Discussion started by: user_prady
2 Replies
9. Shell Programming and Scripting
hi
i am having a c code which gives the output of my password in text format
i.e when i run my c code which which gives the password asfollows====>>>>>>
$./passwdprogram ======>>>>>>abc@123(this is the output)
now i have an expect script to remotely ssh which uses the password set in ... (0 Replies)
Discussion started by: xander
0 Replies
10. UNIX for Dummies Questions & Answers
Hi,
My name is vreddy and I am learning c language now and written one programme on vi editor.
how do I compile the programme please give me some advice and that would be helpfull for me.
thanks
vre (10 Replies)
Discussion started by: vasudeva
10 Replies
Summarize(3pm) User Contributed Perl Documentation Summarize(3pm)
NAME
XMLTV::Summarize - Perl extension to summarize XMLTV data
SYNOPSIS
# First get some data from the XMLTV module, eg:
use XMLTV;
my $data = XMLTV::parsefile('tv_sorted.xml');
my ($encoding, $credits, $ch, $progs) = @$data;
# Now turn the sorted programmes into a printable summary.
use XMLTV::Summarize qw(summarize);
foreach (summarize($ch, $progs)) {
if (not ref) {
print "
Day: $_
";
}
else {
my ($start, $stop, $title, $sub_title, $channel) = @$_;
print "programme starts at $start, ";
print "stops at $stop, " if defined $stop;
print "has title $title ";
print "and episode title $sub_title" if defined $sub_title;
print ", on channel $channel.
";
}
}
DESCRIPTION
This module processes programme and channel data from the XMLTV module to help produce a human-readable summary or TV guide. It takes care
of choosing the correct language (based on the LANG environment variable) and of looking up the name of channels from their id.
There is one public routine, "summarize()". This takes (references to) a channels hash and a programmes list, the same format as those
returned by the XMLTV module. It returns a list of 'summary' elements where each element is a list of five items: start time, stop time,
title, 'sub-title', and channel name. The stop time and sub-title may be undef.
The times are formatted as hh:mm, with a timezone appended when the timezone changes in the middle of listings. For the titles and channel
name, the shortest string that is in an acceptable language is chosen.
The list of acceptable languages normally contains just one element, taken from LANG, but you can set it manually as
@XMLTV::Summarize::PREF_LANGS if wished.
AUTHOR
Ed Avis, ed@membled.com
SEE ALSO
XMLTV(1).
perl v5.14.2 2004-01-03 Summarize(3pm)