Questions tagged [rsh]

rsh is a shell program which is used to connect to a remote host and execute one specified command.

68 questions
23
votes
5 answers

Potential problems setting window.location.hash

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…
Cameron
  • 96,106
  • 25
  • 196
  • 225
19
votes
5 answers

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?
Jon 'links in bio' Ericson
  • 20,880
  • 12
  • 98
  • 148
13
votes
4 answers

pam_appl.h and pam_misc.h missing, in rshd.c source code

I am working on a centOS 5.5 OS. It shows error that /security/pam_appl.h and /security/misc.h file is missing. Actually my rshd.c does not loads PAM module, may be by putting this libraries, it helps me to work my rshd fine. That's why I posted…
devsda
  • 4,112
  • 9
  • 50
  • 87
8
votes
1 answer

Difference between exit and logout

Not sure it is related to VxWorks or to rlogin, but anyway. I read one should never use the exit command to quit a VxWorks rsh shell, but only the logout command. However I can't seem to find an explanation. What is the difference between those…
Skippy le Grand Gourou
  • 6,976
  • 4
  • 60
  • 76
8
votes
1 answer

Escaping pipe character in rsh

I am trying to run this bash command, but I cant get around the "|" pipe character rsh -l user machine "echo "PORTS = 123|456|789" >> conf.cfg" Getting: bash: 456 >> conf.cfg: No such file or directory bash: 789: command not found Would you know how…
kirbo
  • 1,707
  • 5
  • 26
  • 32
7
votes
1 answer

Erlang client set ssh key

I'm using the :client API to connect to an external node and use code there remotely, the thing though is that I'm using Dokku for deployment and it would be really nice if I could specify a ssh key at runtime. Right now my code looks something like…
Zen
  • 7,197
  • 8
  • 35
  • 57
5
votes
2 answers

python popen rsync with rsh option

I'm trying to execute a rsync command via subrocess & popen. Everything's ok until I don't put the rsh subcommand where things go wrong. from subprocess import Popen args = ['-avz', '--rsh="ssh -C -p 22 -i /home/bond/.ssh/test"',…
oho
  • 188
  • 8
4
votes
1 answer

Run command using rsh on a remote computer

I am trying to run a python script, and I need to Rsh a command from the script, the command I want to run is : df -Pk|grep "sd\|md"|gawk '{print $2}' and I do it as - cmd2='df -Pk|grep \\\"sd\|md\\\"|gawk \'{print $2}\'' process =…
sudologin
  • 91
  • 1
  • 7
4
votes
1 answer

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…
Max
  • 4,792
  • 4
  • 29
  • 32
3
votes
2 answers

moving from one to another server in shell script

Here is the scenario, $hostname server1 I have the below script in server1, #!/bin/ksh echo "Enter server name:" read server rsh -n ${server} -l mquser "/opt/hd/ca/scripts/envscripts.ksh" qdisplay # script ends. In above script I am logging into…
Vignesh
  • 949
  • 2
  • 21
  • 38
3
votes
1 answer

remote shell call with awk from perl script

I'm trying to execute commands on a remote host from a perl script. $check = `rsh host1 "df -k /backup/|tail -1|awk \'{print \$5}\'"`; print $check But awk returns me the whole string instead of one column. /dev/md/dsk/d10 4133838 1936684…
user947668
  • 2,548
  • 5
  • 36
  • 58
3
votes
1 answer

REG QUERY Key with a space in the name

I am new to linux. Please help !! I am trying to read the windows registry key entry on a remote (windows) system using the below rsh command which has a space in the folder name. Kindly let me know how to resolve this. rsh <"remote_ip"> REG QUERY…
Rajesh
  • 31
  • 1
  • 3
2
votes
4 answers

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…
Ville M
  • 2,009
  • 7
  • 30
  • 45
2
votes
0 answers

os/exec to run shell cmd "rsh" bug

$ go version go version go1.18 windows/amd64 $ go env set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\Binglei.Hou\AppData\Local\go-build set GOENV=C:\Users\Binglei.Hou\AppData\Roaming\go\env set GOEXE= set GOEXPERIMENT= set…
2
votes
1 answer

Executing RSH command using exec() in PHP

I am having trouble using rsh in the PHP exec() command. The error that I'm getting is: Could not create directory '/nonexistent/.ssh'. It appears that this is because Apache runs as the user nobody who does not have a home directory, therefore it…
Jared
  • 4,567
  • 2
  • 26
  • 30
1
2 3 4 5