01-18-2011
Got it -- the first argument wrote the file in the home directory, and it wrote the last two arugments into the working directory -- I should have known this one. DOH!
![Embarrassment Smilie](https://www.unix.com/images/smilies/redface.gif)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am having problems scripting in UNIX. I am currently attending school and for the first time I am being introduced to scripting. My problem is I am supposed to enhance the spell_check by adding a third optional argument. The third argument is to specify a list of words to be added to the... (1 Reply)
Discussion started by: steph
1 Replies
2. UNIX for Dummies Questions & Answers
hi there i am new to this site and this linux and unix stuff so kind of plz help me out hoe to start the stuff.... (1 Reply)
Discussion started by: cool_dude
1 Replies
3. Shell Programming and Scripting
All,
I appreciate any help you can provide on this. I get an "else unmatched" error with this code and can't figure out why. If I remove the 1st if statement through the 1st else the script runs through fine. Any thoughts?
#decrypt file
sudo -u gpg /usr/bin/gpg... (4 Replies)
Discussion started by: peteroc
4 Replies
4. Shell Programming and Scripting
Hi, I need a little help here. I am exporting user info from a PSQL database and everything is working with the exception of this:
10029008:dsAuthMethodStandard\:dsAuthClearText:classword:10029008:2004:10029008:10029008:/home/student/1002/90/08:10029008
It is putting a colon right before the... (1 Reply)
Discussion started by: Stud33
1 Replies
5. IP Networking
Hi,
How do I get subnet from this:
10.252.0.138/25
Tnx (2 Replies)
Discussion started by: mehrdad68
2 Replies
6. Shell Programming and Scripting
Hello,
i am on 2.6.13-1.1526_FC4smp
i have directory named /home , and in there i have directory 2009_10_10
and two files : 2009_10_10.log and 2009_10_11.log
How to write shell script which will delete only file/s that don't have his/their 'parent' directory, so in this case , only... (7 Replies)
Discussion started by: tonijel
7 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have inherited a server at work that has one IP and two virtual IP's. It is live and I want to figure out what each IP is being used for. I thought of NETSTAT but I cannot figure out how to get it to list what each IP is listening for. ANy advice? (8 Replies)
Discussion started by: mojoman
8 Replies
8. UNIX for Advanced & Expert Users
I have two machines, each with a virtual interface, with the following configurations:
Machine1:
eth2 Link encap:Ethernet HWaddr 00:09:6B:19:E5:05
inet addr:172.16.0.201 Bcast:172.16.0.255 Mask:255.255.255.0
eth2:0 Link encap:Ethernet HWaddr 00:09:6B:19:E5:05
... (0 Replies)
Discussion started by: druidmatrix
0 Replies
9. UNIX for Dummies Questions & Answers
#!/bin/sh
while IFS=: read address port; do
: ${port:=443}
address=$address
port=$port
cd $f_location
number=`grep "$address" thing.txt -A 1 | grep "addresses=" | cut -d'"' -f2`
echo "$address,$port,$number,$answer" >>... (9 Replies)
Discussion started by: shade917
9 Replies
10. Shell Programming and Scripting
Hi,
Below is my input file:
Long list of significant figure
1.757E-4
7.51E-3
5.634E-5
.
.
.
Desired output file:
0.0001757
0.00751
0.00005634
.
.
. (10 Replies)
Discussion started by: perl_beginner
10 Replies
evminfo(1) General Commands Manual evminfo(1)
NAME
evminfo - Provides information about EVM
SYNOPSIS
evminfo -lc | -vp | -verify verify_option [-file verify_file]
OPTIONS
Reads the EVM channel configuration file, /etc/evmchannel.conf, and writes a list of all the configured event channels. You can review the
events available for retrieval through a particular set of channels by invoking evmget with the -C option. Writes a string that can be
used as the first two components (by convention the vendor and product components) of a system event name. This option enables script
writers to refer to system events in a way that is independent of the host system. You should use this facility if you are writing a
script that in the future may be used on other platforms that support EVM, and whose system events may have a different prefix. Checks the
syntax of the EVM configuration file specified by verify_option. Valid values for verify_option are daemon, logger or chmgr, to verify the
EVM daemon, EVM logger or EVM channel configuration files respectively. If a verify_file is specified the named file is checked instead of
the component's standard configuration file.
DESCRIPTION
The evminfo command writes selected information about the EVM environment to its standard out stream. The options determine the informa-
tion to be displayed.
EXAMPLES
In the following example, the evminfo -lc command lists the names of all event channels configured in the EVM channel configuration file,
and the user invokes evmget to retrieve events from two of the listed channels. $ evminfo -lc syslog binlog misclog evmlog $ evmget -A -C
misclog,evmlog
This example illustrates the use of evminfo -vp in a shell script to determine the first two components (by convention, the vendor and
product components) of the names of system events in the host system. The script then uses evmwatch to monitor system events. VP=`evminfo
-vp` evmwatch -f "[name $VP]" | evmshow
The following example checks the syntax of the EVM daemon configuration file. evminfo -verify daemon
EXIT VALUES
The following exit values are returned: Successful completion An error occurred
FILES
The EVM channel configuration file. The EVM daemon configuration file. The EVM logger configuration file.
SEE ALSO
Commands: evmget(1), evmpost(1), evmshow(1), evmsort(1), evmwatch(1), evmchmgr(8), evmdaemon(8), evmlogger(8), evmreload(8)
Files: evmchannel.conf(4), evmdaemon.conf(4), evmlogger.conf(4)
Event Management: EVM(5)
EVM Events: EvmEvent(5)
Event Filter: EvmFilter(5)
delim off
evminfo(1)