10 More Discussions You Might Find Interesting
1. Solaris
Hi, i want to run a touch_file_script.sh on host2 by rsh -ing from host1 to host 2
<host1># rsh <host2> <path>/touch_file_script.sh
No error was prompt. However it did not create the file as in the script.
# rsh <host2>
# sh -x <path>/touch_file_script.sh
+ touch <file>
Run it... (1 Reply)
Discussion started by: beginningDBA
1 Replies
2. Shell Programming and Scripting
Hi All,
I wrote a quick script but don't know how to execute the command and bring the info back to me. Please advise.
#!/usr/bin/ksh
for SYSTEM in xyz abc
do
echo $SYSTEM
rsh $SYSTEM
lscfg -v |grep hdisk ## Need to find out how many disk drives it has
done (1 Reply)
Discussion started by: samnyc
1 Replies
3. Linux
Hi,
I want to rsh to other machine & run a script, but it is nt working
eg:
rsh host command
but after this it doesn't login into that machine & run the command on y machine
but if i write rsh host
then after loggi i write commands it works. Is i am doing something wrong. I jus need... (2 Replies)
Discussion started by: sarbjit
2 Replies
4. Shell Programming and Scripting
Hi All,
I have two servers, say server1 and server2.
I have put the entries of both servers in /.rhosts file of both servers.
So, when I tried to run following from server1-
rsh server2 "ls"
Permission denied was printed on console.
Can anyone help me out?
Regards,
akash mahakode (4 Replies)
Discussion started by: akash_mahakode
4 Replies
5. Shell Programming and Scripting
hi everyone,
I have the following problem: the foreach loop inside rsh doesn'work.
I have tried the for command but it's not recognized. with the foreach command I don't receive any error, but it doesn't really make the cycle, ignoring the foreach and executing 1 time the echo command. Anyone has... (5 Replies)
Discussion started by: trekianov
5 Replies
6. Shell Programming and Scripting
hi scripting experts,
juz wondering if it's possible to have multiple rsh command in a single script? :confused:
ie:
rsh -l <username> "<command>"
rsh -l <username> "<command>"
thanks.
regards,
wee :) (0 Replies)
Discussion started by: lweegp
0 Replies
7. Shell Programming and Scripting
Hi
I have searched usr/bin and usr/sbin to try to find unzip but I cannot find it.
My script is using the ksh #!/usr/bin/ksh but when I rsh to another box it cannot find unzip to unzip to a new archive, but I can unzip files when I am using a telnet session on the box.
The error message... (4 Replies)
Discussion started by: speedieB
4 Replies
8. 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
9. Shell Programming and Scripting
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)
Discussion started by: praphul
3 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys,
I'm having a problem trying to change to a different user within a script .
I want to change to a specific user and then run the subsequent commands using his previleges .
I remember having used ' su ' some years back for this , can't figure it out now !!
Help appreciated . (3 Replies)
Discussion started by: rahma
3 Replies