| Author |
Message |
manish *nix forums addict
Joined: 26 May 2005
Posts: 68
|
Posted: Thu Jul 20, 2006 10:28 am Post subject:
using << with rlogin.
|
|
|
Hi All,
I am trying to do the following simple thing....
logging on to a system and them running bash command on that system's
prompt.
1 rlogin -l root 192.168.160.210 << END
2 bash
3 END
Error recieved:
tcgetattr: Inappropriate ioctl for device
ioctl I_FIND ttcompat: Inappropriate ioctl for device
I tried the similar thing when moving from bash shell to tcl shell, it
worked fine. |
|
| Back to top |
|
 |
SaltyBall *nix forums beginner
Joined: 15 Mar 2006
Posts: 20
|
Posted: Thu Jul 20, 2006 10:44 am Post subject:
Re: using << with rlogin.
|
|
|
manish wrote:
| Quote: | Hi All,
I am trying to do the following simple thing....
logging on to a system and them running bash command on that system's
prompt.
1 rlogin -l root 192.168.160.210 << END
2 bash
3 END
Error recieved:
tcgetattr: Inappropriate ioctl for device
ioctl I_FIND ttcompat: Inappropriate ioctl for device
I tried the similar thing when moving from bash shell to tcl shell, it
worked fine.
|
why not use rsh? |
|
| Back to top |
|
 |
manish *nix forums addict
Joined: 26 May 2005
Posts: 68
|
Posted: Thu Jul 20, 2006 11:40 am Post subject:
Re: using << with rlogin.
|
|
|
although i am able to do
$rsh -l root 192.168.160.200 ls
but
$rsh -l root 192.168.160.200 bash
is not working...
Also, what if i have to execute multiple commands at the remote shell.
I want to excute a sequence of commands such as
$bash
$export DISPLAY=172.23.25.96:0.0
$BsPmGui
....and so on. |
|
| Back to top |
|
 |
Bill Marcum *nix forums Guru
Joined: 28 Mar 2005
Posts: 1264
|
Posted: Thu Jul 20, 2006 1:49 pm Post subject:
Re: using << with rlogin.
|
|
|
On 20 Jul 2006 03:28:35 -0700, manish
<manishmodgil@gmail.com> wrote:
| Quote: | Hi All,
I am trying to do the following simple thing....
logging on to a system and them running bash command on that system's
prompt.
1 rlogin -l root 192.168.160.210 << END
2 bash
3 END
Error recieved:
tcgetattr: Inappropriate ioctl for device
ioctl I_FIND ttcompat: Inappropriate ioctl for device
I tried the similar thing when moving from bash shell to tcl shell, it
worked fine.
Try rsh -t -l root 192.168.160.210 bash |
or rsh -l root 192.168.160.210 bash -i
--
Life would be tolerable but for its amusements.
-- G.B. Shaw |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|