05-27-2010
Track availability of computers
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I must write a program that records the availability of computers. For the argument i have to give him a file containing a list of computers, the program should check every five minutes if they are available. If a computer is not reachable, then the program should write into the file the name of computer and the time when it was't available.
Example usage:
$ Check list_of_computers.txt
The print in the file:
io.something.si not reachable at 15:31
io.something.si not reachable at 15:36
io.something.si not available at the 15:41
verbena.something.si not reachable at 15:41
2. Relevant commands, code, scripts, algorithms:
?
3. The attempts at a solution (include all code and scripts):
The command "ping" is given as a hint
Any ideas?
4. Complete Name of School (University), City (State), Country, Name of Professor, and Course Number (Link to Course):
University of Ljubljana, Ljubljana, Slovenia, Janez Novak, ID63709
Note: Without school/professor/course information, you will be banned if you post here! You must complete the entire template (not just parts of it).
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have two mashines with RedHat 8.0......they connected with cross over cabel...I want use both mashines for Internet, but modem has only first computer... Maybe..through gateway ?....
What must i do for it ?......
sorry for my terrible english.... (3 Replies)
Discussion started by: Pennywize
3 Replies
2. IP Networking
i have a computer (sempron 2200+) with Suse 9.3 and another computer with windows 98 (PI 233 Mhz). I'm connect first computer (with Suse) on the Internet through ethernet but second computers in not connect. How can connect second computers on the internet (with 3 network card...two on the first... (8 Replies)
Discussion started by: dragos
8 Replies
3. UNIX for Dummies Questions & Answers
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
4. UNIX for Advanced & Expert Users
Hello
I've wrote a C++ program which does some mathematical calculations, but the problem is that it takes way too long on any computer to finish.
Is there anyway to make more than 1 computer do the processing so it can process faster? (5 Replies)
Discussion started by: arya6000
5 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I would like to know if it is possible to communicate between two terminals on seperate computers for free - e.g. not using proprietary software or using the built in UNIX terminals on operating systems of the UNIX flavor.
Thanks,
photray94 (2 Replies)
Discussion started by: photray94
2 Replies
6. What is on Your Mind?
Here is an easy one.
Count the number of desktops and servers you have running at home, including your home office if you have one.
Don't count those that are in storage or you rarely use, count the ones that are powered on most, if not all, of the day (and night). (86 Replies)
Discussion started by: Neo
86 Replies
7. Solaris
Hi,
I need to rcp heavy files between 2 solaris 10/sparc M3000 computers. Currently theses 2 computers are linked via a switch/firewall and the rcp commands take a very long time, I have been told that this is because of the firewall (old one).
I asked my client to by a cross ethernet cable and... (2 Replies)
Discussion started by: zionassedo
2 Replies
LEARN ABOUT LINUX
apt-extracttemplates
APT-EXTRACTTEMPLATE(1) APT APT-EXTRACTTEMPLATE(1)
NAME
apt-extracttemplates - Utility to extract DebConf config and templates from Debian packages
SYNOPSIS
apt-extracttemplates [-hv] [-t=temporary directory] file...
DESCRIPTION
apt-extracttemplates will take one or more Debian package files as input and write out (to a temporary directory) all associated config
scripts and template files. For each passed in package that contains config scripts and templates, one line of output will be generated in
the format:
package version template-file config-script
template-file and config-script are written to the temporary directory specified by the -t or --tempdir (APT::ExtractTemplates::TempDir)
directory, with filenames of the form package.template.XXXX and package.config.XXXX
OPTIONS
All command line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean
options you can override the config file by using something like -f-,--no-f, -f=no or several other variations.
-t, --tempdir
Temporary directory in which to write extracted debconf template files and config scripts. Configuration Item:
APT::ExtractTemplates::TempDir
-h, --help
Show a short usage summary.
-v, --version
Show the program version.
-c, --config-file
Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this
configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the
APT_CONFIG environment variable. See apt.conf(5) for syntax information.
-o, --option
Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be
used multiple times to set different options.
SEE ALSO
apt.conf(5)
DIAGNOSTICS
apt-extracttemplates returns zero on normal operation, decimal 100 on error.
BUGS
APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.
AUTHORS
Jason Gunthorpe
APT team
NOTES
1. APT bug page
http://bugs.debian.org/src:apt
Linux 29 February 2004 APT-EXTRACTTEMPLATE(1)