Sponsored Content
Full Discussion: Using dummy files
Top Forums UNIX for Advanced & Expert Users Using dummy files Post 35286 by LivinFree on Friday 4th of April 2003 03:23:20 PM
Old 04-04-2003
I guess the best question here is to ask why you need to do this. I read something similar once in Unix Hints and Hacks (I think...). I've never seen a use for this, other than to test that a drive works OK - like a burn-in period, I guess.

What result are you trying to achieve?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Real Dummy here!!

After reading so many posts in this section, I'm convinced there are no other dummies here but me. You guys are light years ahead. I have a great understanding of the Windows environment, but lost right now in some things pertaining to Unix. See, I'm a recent convert and put my website up on a... (2 Replies)
Discussion started by: Keith
2 Replies

2. Where do I download LINUX & UNIX?

i am the mega dummy

where in this great world wide web could i download the unix core operating system (2 Replies)
Discussion started by: pantera
2 Replies

3. UNIX for Dummies Questions & Answers

i am the mega dummy

where in this great world wide web could i download the unix core operating system (2 Replies)
Discussion started by: pantera
2 Replies

4. UNIX for Dummies Questions & Answers

Dummy Needs Help

I am ftp-ing (I think) files from one computer to another and I am using the Put command to do this. Is there a way for me to string these commands together and Put several files at once? Thanks, Amy (4 Replies)
Discussion started by: amygdala
4 Replies

5. UNIX for Dummies Questions & Answers

Unix Dummy

i need to learn unix real quick and i have completely no idea how. could anyone please tell me how to get material to get me going??? I am IT oriented. PLEASE ANY ONE???????????????? :confused: (3 Replies)
Discussion started by: quarmenna
3 Replies

6. Shell Programming and Scripting

Dummy need help :(

This drive me nut, any can show me how to do it ?? str1='Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004' and str2='Case Modify 10001' if str1 ~ str2 then str1='Report Create 3417176211|Case Modify 10002 20002 30003 40004' Thanks, (8 Replies)
Discussion started by: sabercats
8 Replies

7. UNIX for Dummies Questions & Answers

Dummy Questions

NOT IN USE, IGNORE (8 Replies)
Discussion started by: slayer666
8 Replies

8. UNIX for Dummies Questions & Answers

using grep for a dummy

Hi there; I am really new in unix. I need some help regarding use of grep command. I need to write a shell script which takes a C++ program and counts the number of words which could be a valid C++ variable name. I wrote a regular expression to find c++ variable names: ^* but... (3 Replies)
Discussion started by: mkosucu
3 Replies

9. Shell Programming and Scripting

Unix Dummy!

Hi everyone!! i need some help to do the next exercice, if some one can help-me! Perform a script to swap two lines of a file. The name of file as the two line numbers are passed as a parameter. It should be verify that the file exists, have the necessary permits and lines. i try... (3 Replies)
Discussion started by: freixo
3 Replies

10. UNIX for Beginners Questions & Answers

Dummy Question

Where can I get UNIX? (1 Reply)
Discussion started by: ciao303
1 Replies
DUMMY-UPS(8)							    NUT Manual							      DUMMY-UPS(8)

NAME
dummy-ups - Driver for multi-purpose UPS emulation NOTE
This man page only documents the specific features of the dummy-ups driver. For information about the core driver, see nutupsdrv(8). DESCRIPTION
This program is a multi-purpose UPS emulation tool. Its behavior depends on the running mode: Dummy Mode dummy-ups looks like a standard device driver to upsd(8) and allows one to change any value for testing purposes. It is both interactive, controllable through the upsrw(1) and upscmd(1) commands (or equivalent graphical tool), and batchable through script files. It can be configured, launched and used as any other real driver. This mode is mostly useful for development and testing purposes. Repeater Mode dummy-ups acts as a NUT client, simply forwarding data. This can be useful for supervision purposes. This can also allow some load sharing between several UPS instances, using a point-to-point communication with the UPS. IMPLEMENTATION
The port specification depends on the running mode, and allows the driver to select the right mode. Dummy Mode Port is a definition file name for dummy-ups. This can either be an absolute or a relative path name. In the latter case the NUT sysconfig directory (ie /etc/nut, /usr/local/ups/etc, ...) is prepended. For instance: [dummy] driver = dummy-ups port = evolution500.dev desc = "dummy-ups in dummy mode" This file is generally named "something.dev". It contains a list of all valid data and associated values, and has the same format as an upsc(8) dump (<varname>: <value>). So you can easily create definition files from an existing UPS using "upsc > file.dev". It can also be empty, in which case only a basic set of data is available: device., driver., ups.mfr, ups.model, ups.status Samples definition files are available in the "data" directory of the nut source tree, and generally in the sysconfig directory of your system distribution. Since dummy-ups will loop on reading this file, you can dynamically modify it to interact with the driver. This will avoid message spam into your system log files, if you are using NUT default configuration. You can also use the "TIMER <seconds>" instruction to create scheduled events sequences. For example, the following sequence will loop on switching ups.status between "OL", "OB" and "OB LB" every minute: ups.status: OL TIMER 60 ups.status: OB TIMER 60 ups.status: LB TIMER 60 It is wise to end the script with a TIMER. Otherwise dummy-ups will directly go back to the beginning of the file. Repeater Mode Port is the name of a remote UPS, using the NUT form, ie: <upsname>[@<hostname>[:<port>]] For instance: [repeater] driver = dummy-ups port = ups@hostname desc = "dummy-ups in repeater mode" INTERACTION
Once the driver is loaded in dummy mode, you can change any variables, except those of the driver.* and server.* collections. You can do this by either editing the definition file, or use the upsrw(1) and upscmd(1) commands. Note that in simulation mode, new variables can be added on the fly, by adding these to the definition file. Conversely, if you need to remove variable (such as transient ones, like ups.alarm), simply update these by setting an empty value. As a result, they will get removed from the data. In repeater mode, the driver acts according to the capabilities of the UPS, and so support the same instant commands and settable values. BACKGROUND
This driver was written in one evening to replace the previous dummycons testing driver. It was too limited and required to work from a terminal to interact. dummy-ups is useful for NUT client development, and other testing purpose. It also helps the NUT Quality Assurance effort, by automating some tests on the NUT framework. It now offers a repeater mode. This will help in building the Meta UPS approach, which allows one to build a virtual device, composed of several other devices (either UPS, PDUs). BUGS
Instant commands are not yet supported in Dummy Mode, and data need name/value checking enforcement, as well as boundaries or enumeration definition. AUTHOR
Arnaud Quette SEE ALSO
upscmd(1), upsrw(1), ups.conf(5), nutupsdrv(8) Internet Resources: The NUT (Network UPS Tools) home page: http://www.networkupstools.org/ Network UPS Tools 05/21/2012 DUMMY-UPS(8)
All times are GMT -4. The time now is 12:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy