rexec - other options?

Thread Tools Search this Thread
Operating Systems AIX rexec - other options?
# 1  
Old 05-13-2009
rexec - other options?

Rexec executes commands one at a time on a remote host. The rexec command provides an automatic login feature by checking for a $HOME/.netrc file. User and password are stored
in $HOME/.netrc.

I would like to log on to another host and execute a script/command but not using $HOME/.netrc file, rather something like
Command user password host remote-command.

Which command/approach can I use instead of rexec (AIX Unix)?
# 2  
Old 05-14-2009
Originally Posted by ioniCoder
[...]I would like to log on to another host and execute a script/command but not using $HOME/.netrc file, rather something like
Command user password host remote-command.[...]
To automate this Expect might help. It is available from the IBM AIX Linux Toolbox.
# 3  
Old 05-14-2009
Or set up ssh authentification by exchanging public keys and do it by ssh/scp.
# 4  
Old 05-14-2009
zaxxon, shockneck -> are there a basic command i can use out of the box? so I can avoid configuration of extra functionality.
# 5  
Old 05-14-2009
ssh should be available. Not sure on which version of AIX (5.2?) it became standard. You will have to generate a private and public key without entering a password when being asked at creation (ssh-keygen) for the user. They will be place under ~/.ssh. To have passwordless authentication you will have to add the pub-key of the "client" to the authorized_keys file of the remote host to grant access.
There should be some posts here in the forum or on the web how to set it up step by step.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Slow login with rexec.

Hi all, Im replacing an old linux enterprise redhat 4.5 by a new one linux enterprise redhat 6. In both I use rexec as a communication between the front end and the user. In the old one, when the user connects, the communication establishes quickly (less than 3 sec). But in the new one, the... (1 Reply)
Discussion started by: mig28mx
1 Replies

2. Linux

rexec not working properly

Hi, I am trying to enable rexec to automate certain tasks(it has to be rexec, not ssh or any other due to the system environment), so after switching to linux, I followed the certain instructions that were laid out in the web. My operating system is fedora 17, so I first installed the... (1 Reply)
Discussion started by: wringer
1 Replies

3. UNIX for Advanced & Expert Users

Rexec Issue

Hi Team, I am executing some ksh scripts which inturn calls java files in AIX Environment. We have installed java6_64 which is in .profile. But when we execute from rexec its taking path from some different place that does not have java in $PATH variable. Can you please help me find out which... (2 Replies)
Discussion started by: balasubramani04
2 Replies

4. UNIX for Dummies Questions & Answers

exit codes from rexec?

how do i/is there a way to return the exit code from the remote host? echo $? from the local host only gives 0, if the rexec command itself executes successfully. But what if in the case of the remote command failiing? echo $? on the localhost still gives 0, but I'm interested in the exit code... (4 Replies)
Discussion started by: diego_sapphire
4 Replies

5. UNIX for Dummies Questions & Answers

launching script via REXEC

Hi folks! my client uses an winapplication which is launching shell-scripts remotely on a HP-Unix Machine via Rexec. The application-configuration is launching the script (which is in the home directory of connecting user) like: rexec host user pass So far so good, everything... (3 Replies)
Discussion started by: JohnMurdoch
3 Replies

6. UNIX for Advanced & Expert Users

2 users on the same server (rexec)

Hi, all. Could some one help me please with one problem? In one process (on aix) I should run some remote scripts on other server via rexec. Some scripts should be run on server1 under useridA, and some scripts should be run on the same server under useridB. I specified in .netrc... (10 Replies)
Discussion started by: Anta
10 Replies

7. Solaris


How is rexec enabled on a Solaris 8? How can I check if rexec is installed? (1 Reply)
Discussion started by: pmj1970
1 Replies

8. UNIX for Dummies Questions & Answers

Enabling Rexec ????

Can someone tell me how I would enable Rexec on a UNIX machine? And is the procedure different on the different systems - Solaris, HP-UX -etc. Thanks~!! mike (1 Reply)
Discussion started by: raichuu
1 Replies

9. UNIX for Dummies Questions & Answers

expect (re: rexec)

In there is one statement called expect. but when I issue command whereis expect, respond from o/s only EXPECT: (only one world). I try to find it at /usr/bin, no expect statement there ? is it default unix o/s command ? I am using AIX on... (1 Reply)
Discussion started by: yatno
1 Replies
Login or Register to Ask a Question

Featured Tech Videos