Hi there,
I want some help on scripting regarding file processing.
I have a scenario in which I have 10 files. (file1.txt, file2.txt....) and they are in paricular format.
I want to read these files and append some text lines at the begining of each file and write this updated contents of... (2 Replies)
Hi All,
Query 1 :
I want to know how we can get a count of multipe occurrences of a particular expression in another string.
For Eg. If my string is " 12" and i need to count the number of spaces preceeding 12
Query 2 :
Also want to know how we can change the alignment of a... (9 Replies)
Hi
I have a tab delimited file with 3 fields. I need to sort this file on the first field and remove all the records where the first field has dulplicates. For eg my file is
133|arrfdfdg|sdfdsg
234|asfsdgfs|aasdfs
133|affbfsde|dgfg
When this file gets sorted I need the result to be ... (2 Replies)
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Hey everyone. So the background of the problem is that the ps3 does not support the mkv container, but DOES support the avi one. Here is the script to convert one file with the name hardcoded in:
#!/bin/sh
mencoder -oac... (2 Replies)
Can you give me some suggestions to split below string into three parts using shell scripts.. Script has to print all alphabets before the number, then number and then all alphabets after the number..
input: chris martin 200173 845747 mech engineer
output: chris martin 200173 845747 mech... (6 Replies)
Hi everyone,
I need little help in shell operations from C++ program.
Here I furnish the details of problem:
1. Lets say my current working path is myWorkingPath.
2. In my working path I have list of name directories and each name directory has two more sub directories say A/B.
(now path to... (5 Replies)
Hi Folks,
Below is example of an Input data which is used, based on the last 2, 3 & 4 column, I want my first column data to be collated as shown in the output section.
a,ac,tc,ic
b,ac,tc,ic
c,ac,tc,ic
d,ac,tc,ic
b,bc,tc,ic
d,bc,tc,ic
e,bc,tc,ic
I want my output to be
... (2 Replies)
Discussion started by: nikhil jain
2 Replies
LEARN ABOUT PHP
safenet
SAFENET(8) NUT Manual SAFENET(8)NAME
safenet - Driver for SafeNet compatible UPS equipment
NOTE
This man page only documents the hardware-specific features of the safenet driver. For information about the core driver, see nutupsdrv(8).
SUPPORTED HARDWARE
This driver supports UPS equipment which can be controlled via SafeNet v1.0 for Windows (serial interface only).
EXTRA ARGUMENTS
This driver supports the following optional settings in the ups.conf(5) file:
manufacturer=value
Autodetection of this parameter is not possible yet (and it probably never will be). Therefore, this user-defined string accepts any
name. The default is unknown.
modelname=value
Like manufacturer above. The default is unknown.
serialnumber=value
Like manufacturer above. The default is unknown.
ondelay=value
Time to wait before switching on the UPS (minutes). Defaults to 1 minute.
offdelay=value
Time to wait before shutting down the UPS (seconds). Defaults to 30 seconds.
UPSCMD
This driver supports some instant commands (see upscmd(8)):
test.battery.start
Start UPS self test
test.battery.stop
Cancel UPS self test
test.failure.start
Start simulated power failure
test.failure.stop
Cancel simulated power failure
beeper.enable
Enable the UPS beeper
beeper.mute
Temporarily mute the UPS beeper
beeper.toggle
Toggle the UPS beeper
shutdown.return
Turn off the load and wait for the power to return. Uses the timer defined by offdelay.
shutdown.reboot
Turn off the load and return. Uses the timers defined by offdelay and ondelay.
KNOWN PROBLEMS
If you run the shutdown.return command with mains present, the output may stay on or switch off and not back on again. The shutdown.reboot
command will unconditionally switch on the load again (with or without mains present).
If the driver is called with the -k option (or through upsdrvctl shutdown) it tries to detect which command should be used in an attempt to
stay off until mains is present again or to cycle the output if the power returned in the mean time. This isn't bullet-proof, and you
should be prepared that the power will either not be shutdown, or that it doesn't return when the power comes back.
AUTHOR
Arjen de Korte <adkorte-guest at alioth.debian.org>
SEE ALSO
The core driver:
nutupsdrv(8)
Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/21/2012 SAFENET(8)