rsh

How do you use ssh in a shell script?

When I try to use an ssh command in a shell script, the command just sits there. Do you have an example of how to use ssh in a shell script? ...

What are the advantages of rsh versus Perl's Expect.pm?

I have a Perl Expect.pm script that does some moderately complex stuff like packaging applications, deploying the application, checking for logs, etc. on multiple remote unix hosts. My predecessor had written similar scripts using rsh. Is there a better approach between the two? Or should I use something all together different? I am...

How Can I Tell what Username RSH sends from SUA?

I am on a Windows Vista 64-bit Enterprise machine with Subsystem for Unix Applications installed and the applications downloaded. I am attempting to use RSH to connect to a FreeBSD server. The command I would like to execute is: rsh host.suffix1.company.com command The .rhosts file in my home directory on host.suffix1.company.com look...

Potential problems setting window.location.hash

Hello, I have some javascript code which, at one point, sets window.location.hash to a specific string. This works fine in Firefox 3, but I want to know if I will run into problems with this later, i.e. is this a cross-browser solution (IE6 included)? Also, I am using ReallySimpleHistory. Will this mess up its internal state? Thanks ...

How can I remotely log on to a machine, execute a script which sets up an environment, then accept user input?

Hello. I've been trying to figure out a way to do this for a few hours now, and am having no luck. I have a large environment file that I have saved as a ksh script. This script works perfect if I type . ./setEnv.sh However, what I'm trying to do is use either ssh or rsh to log on to a remote system, execute this script, then allow m...

Running daemon through rsh

I want to run program as daemon in remote machine in Unix. I have rsh connection and I want the program to be running after disconnection. Suppose I have two programs: util.cpp and forker.cpp. util.cpp is some utility, for our purpose let it be just infinite root. util.cpp int main() { while (true) {}; return 0; } forker.cp...

remsh rsh error redirect problem

I'm using the following command on HP-UX: remsh opera -l myuser crontab -l > /opt1/exp_opera_crontab 2>/opt/a.log and when I echo $? I get 0 because it's executing crontab -l on the remote machine. But I don't have opt1 directory so export won't be copied to my local machine in /opt1/exp_opera_crontab I don't get any error about thi...

How to determine current remote connection type? (rsh or ssh)

Hi all, I want to know if there is some methods to find out the current connection type to remote server (rsh or ssh?). Environment is Solaris 9, SuSE linux, csh. ...