10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
2. Solaris
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)
Discussion started by: sunnybee
1 Replies
3. Shell Programming and Scripting
I noticed my script is not passing the value of variable alert to the rsh command. I need some assistance, please. This is a solaris environement. Thanks! :confused:
#!/bin/sh
echo -n "Alert number:"
read alert
rsh rhost_name 'egrep $alert /opt/var/log/*.logs' (2 Replies)
Discussion started by: lopus
2 Replies
4. AIX
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)
Discussion started by: viplov
0 Replies
5. Shell Programming and Scripting
Hi all,
I have a file on a remote machine and I want to do a cut operation on that file.
So, I have been doing
rsh <remote> " cut -d " " -f 2 <filename> "
cut: invalid delimiter
But, when I get the file to the local machine and run the same command, I get... (1 Reply)
Discussion started by: eamani_sun
1 Replies
6. Shell Programming and Scripting
Hi,
I am writing a script that will require me to perform tasks across servers. I tried to use rsh <host> "Commands..." > /dev/null 2>&1. However, I am required to execute a long series of commands after that and rsh does not seem to support this and its also insecure.
I tried to use rsh to... (5 Replies)
Discussion started by: joseph_ng
5 Replies
7. AIX
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)
Discussion started by: jhansrod
1 Replies
8. UNIX for Dummies Questions & Answers
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)
Discussion started by: bcheaib
2 Replies
9. UNIX for Dummies Questions & Answers
Dear All,
I was wondering if there was any way that I could make RSH be non-blocking? i.e. make a remote connection to another machine and execute a function while being able to resume your program.
T (4 Replies)
Discussion started by: thoang
4 Replies
10. Shell Programming and Scripting
Hi,
I'm writing a shell script that rsh's onto a remote machine and runs a perl script that requires values to be entered as the script executes. I also need to ba able to see the outputs from the perl script.
When I try to run it I get an stty : Invalid argument and understand that this is... (4 Replies)
Discussion started by: ianf
4 Replies