| Title: | Feedback on Jabberwocky User Environment |
| Notice: | *** New Presales Presentation - see note 530.0 *** |
| Moderator: | dumpty.reo.dec.com::SMITH |
| Created: | Thu Mar 19 1987 |
| Last Modified: | Fri May 16 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 542 |
| Total number of notes: | 2101 |
Hello Guys,
I have at the end of this note some config files for
logging in to another node and creating a directory.
(just as an example).
I would like to run this dbus environment as a batch job
under Digital Unix however, it give met the following message :
Dialogue Bus V 2.1-00
[tiocgwinsz] System Service failure, status = 25
anyone any idea how I can handle this ?
Thanks
dbrs.env
--------
[SHELL]
application = /usr/bin/csh
default output = db$output,smp
[SMP]
application = smp -ini {inifile} -buscode {buscode} -busname {busname}
default output = db$output
addressing mode = enabled
-----------------------------------------------------------------------------
dbrs.ini
--------
[DIALOGUE BUS]
MAXMSG = 2048
Server Failure = {db$output}Warning: server failed
[CONTROL FILES]
Environment = dbrs.env
[DIRECTORY NAMES]
JABBERWOCKY = /var/jabberwocky/
MESSAGES = /var/jabberwocky/messages/
[MESSAGE FILES]
dialogue bus = MESSAGES:dbus.msg
[APPLICATIONS]
SMP = /usr/bin/dbus-smp
[SMP]
default model = tools/login.smp
Terminal File = JABBERWOCKY:terminq.ans
watch = SHELL
trace file = smp.log
trace level = debug
[STARTUP SERVERS]
SHELL = true
SMP = true
-----------------------------------------------------------------------------
login.smp
---------
TOKEN FILE: tools/userids.tok
RULE: shell
MATCH: "ciney.bro.dec.com"
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %shell%"
ADDRESS: SHELL
MESSAGE: "telnet brsdvp"
END RULE:
RULE: Username
MATCH: "Username:"
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %Username%"
ADDRESS: SHELL
MESSAGE: "{LoginUsername}"
END RULE:
RULE: Password
MATCH: "Password:"
ADDRESS: SHELL
MESSAGE: "{LoginPassword}"
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %Password%"
END RULE:
RULE: brsdvp1
MATCH: "BRSDVP >>"
ADDRESS: SHELL
MESSAGE: "create/dir [.test]"
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %brsdvp1%"
MESSAGE: "ENABLE RULE %brsdvp2%"
END RULE:
RULE: brsdvp2
MATCH: "BRSDVP >>"
STATE: DISABLED
ADDRESS: SHELL
MESSAGE: "logout"
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %brsdvp2%"
MESSAGE: "ENABLE RULE %shell2%"
END RULE:
RULE: shell2
MATCH: "ciney.bro.dec.com"
STATE: DISABLED
ADDRESS: SMP$SERVER
MESSAGE: "DISABLE RULE %shell2%"
ADDRESS: SHELL
MESSAGE: "kill -9 `ps -e | grep dbus | grep -v grep | awk '{print $1}'`"
END RULE:
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 538.1 | KERNEL::PARRY | Trevor Parry | Wed Feb 26 1997 09:09 | 4 | |
Does it give the error when run normally or when run as a batch job ?
How are you running it as a batch job ? cron ?
/tmp
| |||||
| 538.2 | from netscape | BACHUS::ROETS | Chris Roets | Thu Feb 27 1997 08:16 | 13 |
It gives me the error when I run it through
a netscape interface....
actually, this is my test cgi :
echo Content-type: text/html
echo
echo "<PRE>"
echo begining
cd /usr/mcs/roets/src/jwc/own
dbus
echo end
exit
| |||||
| 538.3 | IE::BURCH | Wed Mar 05 1997 12:23 | 29 | ||
Chris, What is happening is that the Dialogue Bus is expecting to be run from a terminal session and is trying to obtain initial terminal characteristics. This is failing because there is no terminal. Are you trying to run the Dialogue Bus from a CGI script so that you obtain a terminal window in a web page? This will not work. Why?: 1) The Dialogue Bus uses terminal protocols which are not supported via http. 2) Terminals make considerable use of escape sequences and control characters that would not be correctly interpretted by a web browser. The ways in which you could acheive connectivity are as follows: 1) Have a detached Dialogue Bus environment that supports remotely invocable services via some form if IPC. 2) Build an applet that could act rather like DB-DECTERM that would run embedded within a page and communicate back to a server running within the Dialogue Bus environment. Regards Gary | |||||