06-06-2006
I'm not sure most of us understand exactly what you want to do. I'm guessing that you want to execute a shell script on a remote machine and check for an error code. I think if I were you I would put some error checking in the script itself and write all errors to a log file on the remote machine.
-X
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how exec a command (ex. a cut or grep ) in anoter pc
i have IP address, login and password. (another account of unix system)
what's the sintax of command ???
es. my ip is 192.xx.xx.xx i make a exec of "ls" redirect in outpu file (> "file) in another pc ( ip 192.44.55.2xxx) (3 Replies)
Discussion started by: ZINGARO
3 Replies
2. Shell Programming and Scripting
Hi All,
I want to execute some commands on unix machine from the mac machne. I have two options for doing so, I am confused which is the best way of doing. Here are two options.
Requirement:
Execute command on the remote server machine. Commands to be executed itself contain arguments to be... (0 Replies)
Discussion started by: Ranu
0 Replies
3. SCO
Hi,
How to execute unix commands in remote unix servers?
Thanks,
Pintu (2 Replies)
Discussion started by: pintupatro
2 Replies
4. Shell Programming and Scripting
Hi,
I am having nightmare issue-ing remote ssh command from a CGI perl script.
It just won't run on debug message: It says permission denied. Can I even do this? as the apache server running under DAEMON account probably can't execute it? Is this the case of what's going on?
Here is my... (3 Replies)
Discussion started by: Dabheeruz
3 Replies
5. HP-UX
Hello,
I know this is somewhat strange, but please let me know if possible. I want to execute a program file in the remote machine with command on the local machine. Let me make things more clear.
Suppose I have a cc on my local system and do not have that on the remote system. I want to use... (2 Replies)
Discussion started by: Veera_Raghav
2 Replies
6. Shell Programming and Scripting
Hi, could anyone please tell me how to ssh to remote host foo and execute command on it and print the result on local host?
Thanks,
Paresh (1 Reply)
Discussion started by: masaniparesh
1 Replies
7. Shell Programming and Scripting
Hi all,
I am facing the following issue:
Host A should execute a remote command (say pwd) on host B2.
B2 is not directly reacheable but you have to connect from a to B1, then from B1 you can execute the command ssh user@B2 pwd.
B1 and B2 are directly connected:
A => B1 => B2
| ... (3 Replies)
Discussion started by: Evan
3 Replies
8. Shell Programming and Scripting
Hi,
i want to run the command in remote server through ssh and every time when i run the script its asking to enter the password. I dnt want to enter the password, when i enter the ip address and directly the command shuld execute.
Script:
#!/bin/bash
echo "Enter Server IP Address:"
read... (2 Replies)
Discussion started by: bapu1981
2 Replies
9. Shell Programming and Scripting
How should i make the following code working
#!/bin/bash
INPUTFILE="test.txt"
while read STRING; do
IP=`host -t A $STRING | awk '{print $NF}'`
HOSTNAME=`ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no $IP "hostname"`
echo $HOSTNAME > out.txt
done < $INPUTFILE
At this moment while... (3 Replies)
Discussion started by: urello
3 Replies
10. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
BEL(1) BEL(1)
NAME
bel - open a shell or execute a command on a remote computer through several machines
SYNOPSIS
bel [-e file] [-s file] [-d delay]
DESCRIPTION
bel generates a script allowing the user to open a shell or execute a command on a remote computer through several machines. In order to
generate the script, the user gives the paths to the different machines until the final one is reached. Several paths may be specified in a
single entry file or through the standard input.
OPTIONS
-e, --entree=FILE
Provide the necessary information to establish the tunnel between the source and the final computer.
-s, --repertoire-sortie=DIRECTORY
The directory where you want to put the generated scripts.
-d, --delai=SECONDS
Delay to wait before each sent command, in seconds.
AUTHOR
Carl Chenet <chaica@ohmytux.com[]>
RESSOURCES
Belier homepage : http://www.ohmytux.com/belier
LICENSE
Copyright (C) <2009> <Carl Chenet>This program is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation, either version 3 of the License or any later version. This program is
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public
License along with this program. If not, see <http://www.gnu.org/licenses/>.
05/16/2009 BEL(1)