This is the command output need to be matched: [snr_core.serconsole.con info] Telnet console listening to port 42365.
(the port number changes every time)
Code to test it:
=======================================
====================================
It send_user a line, the same as the expected output, then catch it and display $expect_out(0,string).
This is the debug output:
I also tried different escape sequences, brace, double/triple backslash etc., no luck.
Appreciate for any help
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 03-03-2018 at 05:13 AM..
Reason: Added CODE tags.
Hi,
I wish to use a column, as inputted by a user from command line, for pattern matching.
awk file:
{
if($1 ~ /^8/)
{
print $0> "temp2.csv"
}
}
something like this, but i want '$1' to be any column as selected by the user from command line.
... (1 Reply)
hi, everyone:
I just wonder how to save the output of command, I mean everything, save as a string into a variable.
another question is I try to ls the details of a directory, but it works in the shell, not in the script.
for example
code: ls -ltr *se100* | grep ^- | tail -1 | awk '... (1 Reply)
Hi all,
I have two instance of jboss (jboss and jboss2). In a shell script that I am writing, I need to grep for each instance of jboss.
If i use ps -ef|grep 'jboss', it will also return the process for my second instance of jboss, which is jboss2. Can someone tell me how can i specify the... (1 Reply)
Hi! I need to get PID of some particular process and I wonder if I can use pgrep tool for this purpose. The problem is that pgrep doesn't perform pattern matching on the whole command line, even if I use -f key. Parsing output of ps command is not quite convenient... Also deamon, which PID I need... (2 Replies)
I have the following code. I want to remove the --sort=num/num/... and am
using grep to exclude it as shown below:
I have a bit of problem figuring out the use of - at the front
echo "--sort=4/5/6" | grep -ivE '-((sort|group)=+/+(/+)*)$'
Now suppose I want to remove --quiet
I can... (7 Replies)
I am still learning expect, For the below script I always get This is True as the answer. Tried to debug and does not make sense to me. Not sure, where I am doing the mistake. Need Help! - Thanks
#!/usr/bin/expect -f
set timeout 10
spawn -noecho bash
expect { *$* }
send "test -d... (3 Replies)
Hi,
I'm writing a script that connects through ssh (using "expect") and then is supposed to find whether a process on that remote machine is running or not. Here's my code (user, host and password are obviously replaced with real values in actual script):
#!/usr/bin/expect
set timeout 1... (3 Replies)
HI Unix Forum,
My requirement
I have two set of Patterns UBA and CIE for which different Phases are there which will have Start and End time. They are not in same order.
I want the o/p in the below mentioned format.
Eg: Mangolia Alien 03:04:56 Phase 0 started (10... (5 Replies)
we want to fetch the latest file in a given directory and also the file name should match the below pattern
Example file name ->hrdata-2015-10-13-16-45-26.xml(2015-10-13-16-45-26- it is not current timestamp, we just need to check for the pattern)
We expect the file will have the... (3 Replies)
Discussion started by: vishwanath001
3 Replies
LEARN ABOUT OSF1
dc
dc(7) Miscellaneous Information Manual dc(7)NAME
dc - serial line/mouse/keyboard
SYNOPSIS
controller dc0 at ibus0 slot 0 vector dcintr
DESCRIPTION
The dc serial line controller provides DECstation 2100, DECstation 3100, DECstation 5000, and DECstation 5100 computer systems with key-
board, mouse, and serial communications interfaces. The serial communications interfaces on the DECstation 2100 and DECstation 3100 provide
partial modem control. The serial communications interfaces on the DECstation 5000 provide full modem control. The device special file
/dev/tty01 on a DECstation 5100 provides full modem control, while the remaining ports provide no modem control at all. All serial commu-
nications interfaces operate at baud rates from B50 to B9600, excluding B200.
The dc ports are used as follows: Usage Graphics device keyboard at 4800 BPS Mouse or tablet at 4800 BPS Communications port 1 (w/modem
control)/local terminal Communications port 2 (w/modem control)/local terminal
On all systems except the DECstation 5100, serial port 2 is used for the system console port in server (that is, non-graphics) configura-
tions. On DECstation 5100s, the serial port labeled 3 on the back of the system is always the system console port. The serial system con-
sole port always operates at 9600 BPS, 8-bits, no parity; modem control is not supported.
RESTRICTIONS
Data communications equipment attached to the console serial port in server configurations must be set to 9600 BPS, 8-bits, no parity. The
scc driver enforces this restriction.
FILES
console terminal local terminal local terminal local terminal (DECstation 5100 only)
RELATED INFORMATION console(7), devio(7), tty(7), MAKEDEV(8) delim off
dc(7)