07-09-2006
add '&':
remsh cash2 '/users/home/sadmin/startdrsrvr.sh' &
This will not help if remsh doesn't perform its work
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Need your help pls...
I have integrated my shell script with sqlplus statements that will fetch necessary data for the rest of the script. As observed, sometimes problems at the oracle database occurs wherein users can not login via sqlplus, so does the script. During execution, the logging of... (4 Replies)
Discussion started by: inquirer
4 Replies
2. Shell Programming and Scripting
Help!
I'm would like to log in su - within a script an contuine to run the commands within the script. Every time I log in as su - I have to exit for the rest of the script to run! e.g.
#!/bin/ksh
su - oracle
ps -ef |grep som <--- doesn't excute command until I log out su
oracle.... (1 Reply)
Discussion started by: bugggg
1 Replies
3. UNIX for Dummies Questions & Answers
i m try to do remsh i need to know what are the step to define the user and password i try .rhosts it give me
operator:/export/home/operator>remsh billmed ps -ef
permission denied
just for testing (3 Replies)
Discussion started by: kazanoova2
3 Replies
4. UNIX for Dummies Questions & Answers
I am new at developing EXPECT scripts. I'm trying to create a script that will automatically connect to a UNIX server via FTP and download a log file from the server within a specified server directory on the remote machine. I'm having problems with the EXPECT script "hanging" at the password... (0 Replies)
Discussion started by: markus2008
0 Replies
5. Linux
I want to create a script to simulate a process that hangs to test a java application. My java app executes a system command, which can also be executing scripts, etc. Any ideas on such a script?
The java code is:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("sh... (4 Replies)
Discussion started by: brendan76
4 Replies
6. Shell Programming and Scripting
Hello,
I have the following shell script and when i execute, it keeps hanging and nothing happens
Please let me know.
Requirement is to read data from file and pass it to the sql and create files as shown.
code
/********
#!/bin/sh
while read user.dat
do
echo "user = $1 email =... (1 Reply)
Discussion started by: rakeshsr12
1 Replies
7. Shell Programming and Scripting
ok... this is where i am at... i need a script to call another script as a wrapper because the first script creates a sub-shell.
here is what i got... i kick off the first script "CCBDEMO-threadpoolworker.sh"
#!/bin/bash
clear #clearing screen
directory="/data1/spl/cis/CCBDEMO/bin"... (1 Reply)
Discussion started by: Dagaswolf
1 Replies
8. Shell Programming and Scripting
Hey,
Does anyone know why my Perl script is hanging when i execute it.
print "looking around ...\n";
my ($out, $err, $exit) = $scon->cmd('ls');
print "done";
i get the following error:
channel 1: open confirm rwindow 131043 rmax 32768
I'm using use Net::SSH::W32Perl Module.... (4 Replies)
Discussion started by: Phi01
4 Replies
9. Shell Programming and Scripting
Hi All,
Im using remsh to execute shell script on remote server. And this script gets called from another AIX server.
My code is:
remsh $rHost -l $rUser -n "export JAVA_HOME=/usr/java6_64_SR7; export ORACLE_HOME=/oravl01/oracle/11.1.0.7;
export... (3 Replies)
Discussion started by: AB10
3 Replies
10. UNIX for Beginners Questions & Answers
We are using a korn shell script which is meant to trigger a Oracle job to load the data from a flat file to an Oracle database . Also the same script addresses the following tasks also like triggering a SFTP job to pick the file from one path to the target location and checking the same with... (6 Replies)
Discussion started by: senmng
6 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)