Hello Everybody,
I have files; yyyymmdd.log which the data look like this;
"Txid=9426043&MsgTxt=Thankyou&UserId=john&Password=jh2501"
"Txid=9426150&MsgTxt=Thankyou&UserId=john&Password=jh2501"
.
.
.
"Txid=9426200&MsgTxt=Thankyou&UserId=john&Password=jh2501"
Question 1:
How to... (3 Replies)
hello people,
All my servers have 4 mounts with this norme. For example, if my hostname is siroe.
df -h | grep `hostname`
/dev/dsk/c1t3d0s6 404G 399G 800M 100% /siroe3
/dev/dsk/c1t2d0s6 404G 399G 800M 100% /siroe2
/dev/md/dsk/d6 20G 812M 19G ... (3 Replies)
Instead of using the following command
#dmesg | grep -v sendmail | grep -v xntpd
How can I use just one grep -v and give both arguments.
Please suggest
thanks (4 Replies)
Hello,
Is there a way in grep to remember patterns?
For eg: int a,b,c,d,a;
If a variable is declared twice, like in the previous example, I should be able to print only those lines.
Is there a way to print only the lines where the variable name occurs more than once, using grep... (1 Reply)
i have files with "DOMAINSOLVER ACMS" with any number of spaces in between the two words on its own line and i can find it with the following:
grep -c "DOMAINSOLVER* ACMS" $FILENAMEbut i need to exclude any lines matching: "$DOMAINSOLVER". i've tried a variety of quoting and escaping with no luck.... (4 Replies)
is there anyway i can ask grep to only get the first line?
as in the top command line
line 1 <-- just grep this line
line 2
line 3
---------- Post updated at 04:24 PM ---------- Previous update was at 04:19 PM ----------
nvm.. found out that i can do it with
|head (12 Replies)
Hello all,
I'm trying to grep the string "scott" from all files whose names are like srvr*.log and that were created "Nov 15"...I'm trying the following command but throws an error message...seems like the syntax is incorrect..
grep scott < ls -l srvr*.log|grep "Nov 15"
Thanks for your... (9 Replies)
My grep returns a row of data like this:
75=20130130;60=074338;61=985;511=55473883;452=115439;62=196;267=1;
Is there a way for the grep to only return 60="something" and 511="something" ?
Thanks in advance. (10 Replies)
Discussion started by: Carl2013
10 Replies
LEARN ABOUT REDHAT
autorun
AUTORUN(1)AUTORUN(1)NAME
autorun - automatically mounts/unmounts CDROMs and executes /path_to_cdrom/autorun after mounting
SYNOPSIS
autorun [-lmqv?V] [-a EXEC] [-c CDPLAYER] [-e STRING] [-i MILLISEC] [-n STRING]
[-t STRING] [--autorun=EXEC] [--cdplayer=CDPLAYER] [--interval=MILLISEC]
[--lock] [--mountonly] [--notify=STRING] [--notify-insert=STRING] [--notify-eject=STRING]
[--quiet] [--verbose] [--help] [--usage] [--version] [cdromdevices...]
DESCRIPTION
autorun automagically recognises all available CDROMs in your system, mounts them upon insertion and executes a possible 'autorun' exe-
cutable on the CD. To allow an ordinary user to do this you have to add the options user,exec in /etc/fstab to the CDROMs you want to use.
You may also use Autorun.desktop for KDE. Just place it in your Autostart folder.
Command strings are parsed and %P% is replaced by the mountpoint path. %D% is replaced by the device path. After that the command string
will be executed using /bin/sh -c "command string";
OPTIONS -a, --autorun=EXEC
Execute EXEC, if the CD changes. This executable must be located on the CD. I.e. if you specify "--autorun=myprogram", and your CD
is mounted under /mnt/cdrom, after the CD is changed, autorun will attempt to run "/mnt/cdrom/myprogram". (default "/autorun")
-c, --cdplayer=CDPLAYER
Run CDPLAYER, if an audio CD is inserted (default "/usr/bin/kscd")
-i, --interval=MILLISEC
The time to wait in MILLISEC between checks (default 1000)
-l, --lock
Lock the mounted media (unmount by hand)
-m, --mountonly
mount/unmount only (do not execute anything)
-n, --notify=STRING
Command STRING that will executed if the CD changes (default "/usr/bin/kfmclient configureDesktop")
-t, --notify-insert=STRING
Command STRING that will executed if a CD was inserted and the autorun executable "/autorun" or the one specified with --autorun was
NOT executed. (default "/usr/bin/kfmclient openURL %P%")
-e, --notify-eject=STRING
Command STRING that will executed if a CD was ejected (default "")
-q, --quiet
Don't produce any output
-v, --verbose
Produce verbose output
-?, --help
Give this help list
--usage
Give a short usage message
-V, --version
Print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
AUTHOR
Harald Hoyer <Harald.Hoyer@redhat.de>
There is a project web page at parzelle.de: http://parzelle.de/.
AUTORUN(1)