07-19-2001
Run commands on a UNIX with NT
Hi
I'm trying to automatically run a command on a UNIX (AIX) machine from a Windows NT 4 machine. I can do this manually using the 'rexec' or 'rsh' command but I need an automatic login (on the AIX). In the manual I've found that there should be a '.rhosts' file on the Unix machine in the local directory but it still doesn't work.
Please help ...
Greetings
Mark
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What would be the best way to setup for a Linux box to run a few commands before the user logs in? (1 Reply)
Discussion started by: woofie
1 Replies
2. Shell Programming and Scripting
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies
3. Shell Programming and Scripting
I have a question of how to run commands from a variable where there are more than one commands in the variable under bash.
I ran the following commands under bash
> command="ls /etc/zshrc; ls /etc/zshenv"
> $command
The results were:
ls: /etc/zshrc;: No such file or directory
ls: ls:... (1 Reply)
Discussion started by: pankai
1 Replies
4. UNIX for Dummies Questions & Answers
It would be helpful if someone could help me out here. The problem I have been having is that I cannot run some commands which are valid - whenever I try to run the command I get the message "command not found". Now, if I run the same command as root it executes. These commands do not have to be... (5 Replies)
Discussion started by: BigTool4u2
5 Replies
5. UNIX for Dummies Questions & Answers
How to run UNIX commands for practice in Windows 2000 OS?
If you suggest to install Cygwin, please let me know the procedure to install, or else I feel happy if you suggest any stand alone app for running UNIX commands..:) (2 Replies)
Discussion started by: Srikanthk
2 Replies
6. Shell Programming and Scripting
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running... (6 Replies)
Discussion started by: SN2009
6 Replies
7. Programming
Greeings all
Im trying to excute a command from Java and direct the output to the main output screen or to another file .... can you please help with this ? can I use filewriter for this ?
Here is my code....
import java.io.BufferedReader;
import java.io.File;
import java.io.FileWriter;... (3 Replies)
Discussion started by: yahyaaa
3 Replies
8. Shell Programming and Scripting
I have to create two instances of jBoss 5.1.0 GA. In order to do that I have to execute the following in start-jboss.sh:
find . -exec /opt/novell/idm/jboss/bin/run.sh -Djboss.service.binding.set=ports-01 -c IDMProv -b 0.0.0.0 \; -exec /opt/novell/idm/jboss/bin/run.sh... (4 Replies)
Discussion started by: Joydeep Ghosh
4 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system.
Please find the below details.
1. we have a web application that runs on Windows Platform.
2. From web application, we need to connect to remote Unix machine.... (6 Replies)
Discussion started by: Balaji K
6 Replies
10. Shell Programming and Scripting
Hi,
Brand new to these forums, and I hope that someone can help me out.
I'm trying to run the following command in UNIX
java -jar GenomeAnalysisTK.jar -T SplitSamFile -dt NONE -R reference.fa -I my.bam --outputRoot /my/path/SampleFiles/Sample_
It executes the SplitSamFile from GATK, but I... (3 Replies)
Discussion started by: Wixaros
3 Replies
netrc(4) Kernel Interfaces Manual netrc(4)
NAME
netrc: .netrc - login information for ftp, rexec, and rexec()
DESCRIPTION
The file contains login and initialization information used by the autologin process, by the library routine, and by the command (see
ftp(1), rexec(3N), and remsh(1)), respectively. This file is optional. It exists, if at all, in the user's home directory.
If the file contains password or account information for use other than for anonymous its owner must match the effective user ID of the
current process. Its read, write, and execute mode bits for group and other must all be zero, and it must be readable by its owner. Oth-
erwise, the file is ignored.
The file can contain the following tokens, separated by whitespace (spaces, tabs, or newlines) or commas To include a comma as part of a
token, enclose that token in quotation marks ().
Identify a remote machine name.
The autologin process searches the file for a token that matches the remote machine specified on the command line, as
an command argument, or as the parameter of Once a match is made, the subsequent tokens are processed, stopping when
the end-of-file is reached or another token or a token is encountered.
If the remote machine name has an alias host name, and both the official host name and the alias are present in the
file, the client gives precedence to the official host name over the alias when searching the file. If an alias is
given as an entry to the command, and in the search from the top of the file to the bottom, the client finds the alias
host name before it finds the official host name, it will use the alias's entry. However, if it finds the official
host name first, it will use the official entry even though the alias host name also exists in the file. So the high
precedence given to the official host name requires placing the official host name entry last in the file for when
aliases exist.
Same as except that matches any name. There can be only one token, and it must be after all tokens. This is normally used for
as follows:
This provides automatic anonymous login to machines not specified in This can be overridden in by using the flag to
disable autologin.
Identify a user on the remote machine.
If this token is present, the or autologin process initiates a login using the specified name. If this token matches
the user name used by the command option, or, by default, the local user name, uses the token, if present.
Supply a password. If this token is present, the autologin process supplies the specified string, if the remote server requires a password
as part of the login process. Note that if this token is present in the file for any user other than aborts the
autologin process if the is readable by anyone other than the owner. Also note that the passwords in are not
encrypted.
Supply an additional account password for
login. If this token is present, the autologin process supplies the specified string if the remote server requires an
additional account password, or the autologin process initiates an command if it does not.
Define an macro. This token is just like the command. A macro is defined with the specified name; its contents begin with the
next line and continue until an empty line (consecutive newline characters) is encountered. If a macro named is
defined, it is automatically executed as the last step in the autologin process.
EXAMPLES
The following is a valid entry for the host whose account has the password
WARNINGS
It is a security risk to have unencrypted passwords in a file.
AUTHOR
was developed by the University of California, Berkeley.
FILES
SEE ALSO
ftp(1), remsh(1), rexec(3N).
netrc(4)