- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: No output from remsh -n
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2001 07:33 AM
01-12-2001 07:33 AM
No output from remsh -n
When I issue the command:
remsh A ls, e.g.,
I receive normal output. However, when I add a -n
to the command, I get no output:
remsh A -n ls
Has anyone encountered this behavior?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2001 02:24 AM
01-16-2001 02:24 AM
Re: No output from remsh -n
remsh has no way to determine wheter the remote command requires input.
The -n option redirects standard input to remsh from /dev/null.
/usr/bin/sh automatically redirects its input from /dev/null when jobs are run in the background.
My questions:
1, Which shell do you use?
2, Try this example:
remsh hosta read
remsh hosta -n read
Does it works?
3, Do you use .rhosts file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 12:58 PM
02-20-2003 12:58 PM
Re: No output from remsh -n
a year ago, I'v forgotten
the answer....
My questions:
1, Which shell do you use?
ksh
2, Try this example:
remsh hosta read <
Does it works?
3, Do you use .rhosts file?
yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 04:33 PM
02-20-2003 04:33 PM
Re: No output from remsh -n
e.g. remsh A -n ls &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2003 05:18 PM
02-20-2003 05:18 PM
Re: No output from remsh -n
run inetd -l and you'll see all messages in syslog. Di it on server A or on both.
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 02:44 AM
02-21-2003 02:44 AM
Re: No output from remsh -n
From your other thread ( http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7ea1e3ed7640d71190080090279cd0f9,00.html ) :
Works fine for me.
Perhaps you should first try this on each of the involved systems to itself, i.e.
remsh `hostname` -n date
If you still need help, then please give details about the systems and account involved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 06:57 AM
02-21-2003 06:57 AM
Re: No output from remsh -n
Sorry-
the gist from the other thread was that that if I redirect standard input in
_any_ fashion, standard output vanishes... This includes using remsh -n,
redirecting stdin with < or |, or putting the remsh in a cronjob:
sys_hp5:> remsh sys_sun12 date
Fri Feb 21 09:41:50 EST 2003
sys_hp5:> echo 'junk' | remsh sys_sun12 date
sys_hp5:>
btw- the remote command *does*
execute; just my standard from the remote command vanishes....
The local system is hpux11, the remote system is Solaris 8.
Doing the remsh to itself on either system works fine.
sys_hp5:~> remsh `hostname` uname -a
HP-UX sys_hp5 B.11.00 U 9000/889 63621341 unlimited-user license
sys_sun12:~> remsh `hostname` uname -a
SunOS sys_sun12 5.8 Generic_108528-17 sun4u sparc SUNW,Ultra-Enterprise
My account defaults to ksh on both boxes, with a .rhosts on the
remote system just between the two hosts.
sys_sun12:~> cat ~/.rhosts
sys_hp5 barnes
>try adding "&" to your command...
>e.g. remsh A -n ls &
Doesn't appear to alter anything:
$ remsh sys_sun12 date
Fri Feb 21 09:28:41 EST 2003
$ remsh sys_sun12 -n date
$ remsh sys_sun12 -n date &
[1] 26749
$
[1] + Done remsh sys_sun12 -n date &
$
> run inetd -l and you'll see all messages in syslog. Di it on server A or on both.
nothing shows up on server A in syslog, the remote server is a Solaris box,
inetd doesn't have the -l.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 07:07 AM
02-21-2003 07:07 AM
Re: No output from remsh -n
Have you also tested things the other way around, i.e. Solaris client to HP-UX server? If so, what were the results?
Minor nit: Did you copy-paste things verbatim? You mention "sys_sun12:~> remsh `hostname` uname -a", but as far as I know the Solaris command is rsh, not remsh. Or has that changed?