07-23-2010
wowsers that actually worked ill have to study the awk meaning of it. (substr($0,14)
But for sites that dont work or are down
haha
theres just one more thing im trying if i cant gain access to a paticular modem i get this output.
send: spawn id exp6 not open
while executing
"send -- "1234\r""
(file "/usr/local/bin/modem/chkusrs.exp" line 7)
Users active on the modem
is it possible to remove it being it has the master passwd showing to everyone and if so can i translate it to....
echo "Unable to connect to $a: site maybe unreachable. Check correct ip in iptable sheet"
i have this right now but no luck haha (a couple of grep -v s haha)
out=`/usr/local/bin/modem/chkusrs.exp $ip | grep -v spawn | grep -v send | grep -v file|
But im not sure if im in the right place.
thanks again
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am hing problem in grep..
So I need convert following code to sed based one..
grep -ie "error|exception" $LOG_DIR/Node$i\Log.txt >> $LOG_ERR_REP
thats is I want to serach error and exception (ignore case) and write to other file .
how to do? (5 Replies)
Discussion started by: redlotus72
5 Replies
2. Shell Programming and Scripting
hi all
by using cat /etc/passwd
I've got these output.
ajh1ect:x:839:501:Anthony:/home/ajh1ect:/bin/bash
mjb1ect:x:840:501:Michael:/home/mjb1ect:/bin/bash
mv3ect:x:841:501:Marian:/home/mv3ect:/bin/bash
now I want to see just the user ID and group ID.
so what is the code will be with... (2 Replies)
Discussion started by: nokia1100
2 Replies
3. Shell Programming and Scripting
I have many text file reports generated by a Information Assurance tool that I need to get into a .CSV format or Excel tab delimited format. I want to use sed or awk to grab all the information in the sample text file below and create column headings:Risk ID, Risk Level, Category, Description, How... (5 Replies)
Discussion started by: Bjoeboo
5 Replies
4. Shell Programming and Scripting
Can someone help me in understanding when to use SED, AWK and GREP (3 Replies)
Discussion started by: kn.naresh
3 Replies
5. UNIX for Dummies Questions & Answers
I have two .txt files one called good.txt and the other one is called bad.txt. Both contain email addresses in the following format:
john@john.com
bob@bob.com
sarah@sarah.com
Basically, I want to scrub good.txt against bad.txt and save the resulting output in scrubbed.txt meaning that if... (2 Replies)
Discussion started by: holyearth
2 Replies
6. UNIX for Dummies Questions & Answers
------------------------------------------------------------------
Ex of Warning messgae,(Many similar lines occure for Both Test and Test1)
-WARNING:Below Field not implemented in file File name: /home/test/
new/file1, msg buffer is:
:Test:000948
... (1 Reply)
Discussion started by: prsam
1 Replies
7. UNIX for Dummies Questions & Answers
Thread1 {
x = 2
y = 10485
}
Thread2 {
x = 16
y = 1048
}
Thread3 {
x = 1
y = 1049
}
Thread4 {
x = 4
y = 1047
z = 500
}
Suppose the above is a piece of code. I need to automate and verify that the value of x under Thread1's 2.
There are several... (3 Replies)
Discussion started by: foxtron
3 Replies
8. Shell Programming and Scripting
Hi,
Just trying to get to grips with sed and awk for some reporting for work and I need some assistance:
I have a file that lists policy names on the first line and then on the second line whether the policy is active or not.
Policy Name: Policy1
Active: yes
Policy... (8 Replies)
Discussion started by: guinch
8 Replies
9. Shell Programming and Scripting
got a file as y.txt
1 abc,def,ghj
2 defj,abc.kdm,ijk
3 lmn,cbk,mno
4 tmp,tmop,abc,pkl
5 pri,chk,cbk,lmo
6 def,cbk.pro,abc.kdm
i want to search in the above file the key word like abc
looking for two outcomes by passing the parameter value as abc into function and the two outocmes are... (6 Replies)
Discussion started by: silgun
6 Replies
10. Shell Programming and Scripting
Hi,
I have been stuck in this requirement where my file contains the below format.
20150812170500846959990854-25383-8.0.0
"ABC Report" hp96880
"4952"
20150812170501846959990854-25383-8.0.0 End of run
20150812060132846959990854-20495-8.0.0
"XYZ Report" vg76452
"1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
6 Replies
FAXSTATE(8) System Manager's Manual FAXSTATE(8)
NAME
faxstate - control ``modem state'' of a device used by HylaFAX
SYNOPSIS
/usr/sbin/faxstate [ -q queue-dir ] [ -s state ] [ -n ] modem
DESCRIPTION
faxstate sends a message to the HylaFAX faxgetty(8) process servicing modem telling it to use the specified state when notifying the
HylaFAX scheduler that a modem is ready and available for use. This is useful for controlling outbound use of a modem; by marking a
modem's state as busy or down the HylaFAX scheduler will not assign any outbound jobs to the modem.
The specified modem can either be the name (typically the last component of the terminal port the modem is attached to), or the full name
of the associated FIFO named pipe file, e.g. ``FIFO.ttym2''.
If the -n option, faxstate emulates what faxgetty would do; sending a message directly to the faxq process marking the specified modem
down, busy, or ready. This interface is useful for send-only environments in which faxgetty processes are not used. Note that modems
manipulated in this way must previously have been configured with the faxmodem(8) program.
OPTIONS
The following options are supported:
-n Contact faxq directly instead of faxgetty.
-q dir Use a spooling area other than /var/spool/hylafax.
-s Specify the state to send the faxq process each time the modem becomes ready for use; one of ``busy'', ``down'', and ``ready''.
The default state to use is ready.
FILES
Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area.
SEE ALSO
hylafax-server(5), faxgetty(8)
July 17, 1995 FAXSTATE(8)