I have a strange scenario whereby I am trying to use the -n flag (or < /dev/null) to the input of between two particular hosts which doesn't seem to work, but is fine if between two other hosts
First test (between myhost 1 and 2) -n doesn't return output
Second test (between myhost 1 and 3) -n DOES return output as expected
This happens regardless of the shell I use to invoke the command (bash/ksh/csh all the same result)
this only seems to be happening between these two hosts,
The only thing that occurs to me would be to check your shell on myhost2. Try changing your shell (on myhosts2) to another shell and see if it still happens. The shell's startup script may be doing something wierd.
There's probably a better way to do what I'm doing and if so, let me know an alternative.
I have a script that runs rsh for every entry in a txt file to go get the file size off the remote server. I then compare the remote size with a local size.
My script worked fine until recently when I... (2 Replies)
i am using solaris 8.
i can access my server through telnet.
but not able to access rsh or rlogin.
i can rsh from this server to another machine but not from other machine to this machine.
How to start rsh service.
i have restarted inetd.
pkill -HUP inetd.
thanks (1 Reply)
Hi guys.
i need some help, i need to create a script in tcsh that rsh into all my hosts that we have at our business, then cd to a directory (cd /apps/users) then grab a file from the users folder and ftp it back to my windows machine. can someone please help?
Kind regards.
Brian Behrens (2 Replies)
Had any one made the wildcard "*" or "?" work in tcp wrappers configure file hosts.allow and hosts.deny in AIX? It won't work for me no matter how hard I try.
I am trying to restrict the access of our ftp server and if I specify following in hosts.allow:
ftpd : host01.domain.com... (0 Replies)
Hi,
I am getting the below error while using rsh from other logins in AIX 5.3
rcmd2: socket: The file access permissions do not allow the specified action.
whereas the same is working fine with root login.
I have already defined the host entries in etc/hosts as well as in .rhosts... (0 Replies)
rsh is not working
command:rsh targethost -l username command
Error:Connection refused
I checked on the server rshd was not working.
Tried to start by /usr/sbin/in.rshd start
# ./in.rshd start
rshd: getpeername: Socket operation on non-socket
Please help (1 Reply)
Hi,
root@air01a>SS7Manager -status
This command gives correct output. But when I write this in script and run it on SUNMC (which can connect to air01 and by default login as root). It gives the error "SS7manager not found" or "can not open". Here is the scripts.
#!/bin/sh
rsh air01a... (4 Replies)
Hi all
I have updated my .rhosts file as per the norm, however for some reason on hostA I cannot rsh to hostB.
The entries on /.rhosts on hostA are as follows :-
hostB +
hostB on the other can do rsh without a problem.
Any ideas ? :confused: (1 Reply)
Hi,
From one of the unix servers i want execute an rsh command to 5 different servers.
i want to go to these servers execute a command and come back.
i have a main program which calls a function, where in i use the rsh command.
The server name is passed as a parameter to teh function.
it is... (3 Replies)
Dear all;
I have to Unix servers SUM1 and SUM2 running Reliant Unix 5.45
on both servers i have a system user called "netop".
i want netop on SUM1 to execute rsh from SUM1 to SUM2.
What i did, i put in the .rhosts file in the home directory of netop on SUM2 the following entry:
netop ... (2 Replies)