[ILUG] Console.
Sean
sean at binky.net
Mon Sep 11 21:45:21 IST 2000
John P . Looney wrote something:
{ On Mon, Sep 11, 2000 at 05:43:07PM +0100, Jason Corcoran mentioned:
{ > Hi there,
{ >
{ > is there a way to open a, for example, Eterm and pass arg's from a
{ > script. I want to open a Eterm and pass a rlogin command with a machine
{ > and user name ?
{
{ xterm -e "command arg1 arg2"
{
{ gnome-terminal/rxvt etc. all work the same way...it's in the manpage!
ko. on a similar note. I sometimes 'telnet/rsh/ssh' elsewhere and
usually like to record what I'm doing (like seeing where what mistake/typo
I did). I use the /usr/bin/script[0] command to do this:
"Script makes a typescript of everything printed on your terminal."
(quote from the man page).
Now, I telnet/rsh/whatever to a range of different machines and have
a _shell_ script to let me go to what ever one in the particular fashion
that I usually go to that machine, eg I may use telnet to go to machine A
and ssh to machine B. My script holds that info, giving me some more
brain space. The script issues these as a '-e' option to the
xterm/gnome-terminal/rxvt/...
These xterm/gnome-terminal/rxvt/... don't have a 'record session' feature,
(read old x86free discussions on this, security concerns). I'd like to
use script to record the stuff. Grand. So far.
You'd think that 'xterm -e scriptit.sh $gotohost', where scriptit.sh
is a shell script with just the script and telnet commands init.
Thing is script forks off to record the session, so:
--begin scriptit.sh
#!/bin/sh
script
telnet $1
--end
would not work. Any ideas ?
Sean.
.
{
{ Kate
{
{ --
{ The words of the unwary are apt to cause needless pain and bloody violence.
{ - Zen Master Greg
{
[0] its an executable, not a shell script. It just happens to be called script!
More information about the ILUG
mailing list