niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » shell
using << with rlogin.
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
manish
*nix forums addict


Joined: 26 May 2005
Posts: 68

PostPosted: Thu Jul 20, 2006 10:28 am    Post subject: using << with rlogin. Reply with 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.
Back to top
SaltyBall
*nix forums beginner


Joined: 15 Mar 2006
Posts: 20

PostPosted: Thu Jul 20, 2006 10:44 am    Post subject: Re: using << with rlogin. Reply with quote

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

PostPosted: Thu Jul 20, 2006 11:40 am    Post subject: Re: using << with rlogin. Reply with quote

Quote:
why not use rsh?

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

PostPosted: Thu Jul 20, 2006 1:49 pm    Post subject: Re: using << with rlogin. Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Thu Dec 04, 2008 3:25 am | All times are GMT
navigation Forum index » Programming » shell
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts HP-UX rlogin problem Max HP-UX 5 Tue Mar 21, 2006 9:06 pm
No new posts differences among "ssh", "rlogin" and "telnet" NewToCPP Solaris 7 Thu Mar 02, 2006 9:49 pm
No new posts Permissions with rlogin Claudio Plateroti Debian 0 Tue Jan 24, 2006 4:30 pm
No new posts Permissions with rlogin Claudio Plateroti Debian 1 Mon Jan 23, 2006 5:30 pm
No new posts How to rlogin & get CDE? TM Solaris 5 Wed Aug 10, 2005 11:48 pm

Mortgage | Remortgaging | Personal Loans | Watch Gossip Girl Online | Car Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1937s ][ Queries: 16 (0.1108s) ][ GZIP on - Debug on ]