Hi All,
I am using a expect script to run a shell script on remote server, the code is as follows. But the problem is that it executes only first command, and hangs it doesn't run the next commands.
spawn ssh $uid@$host
expect "password:"
send "$password\r"
expect "*\r"
send... (2 Replies)
hi,
I am using the below line to run a script from remote server(say server A) to another server(say server B).
ssh username@servername ksh script name.
The issue is the script logs into server B, executes the script on server B, transfers the file to server A but does not exit from... (4 Replies)
Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the... (1 Reply)
Hi,
I have an application running on HP-UX, from this application I need to findout if the port number. lets say 7890,7891, 7892 are listening on the remote server running on HP-UX.
Is there any way of doing it using "system()" function or any other?
I noticed that nmap, netcat are not... (0 Replies)
Hi All,
I need script to perform below task.
1. I have a script in one server and need to copy this script to remote server
2. login in to remote server
3. run the script which i copied to this server.
#!/bin/bash
read a
scp /tmp/script.sh user@hostname:/tmp
ssh user@$a
./scirpt.sh
... (2 Replies)
hi,
I need script to perform below task.
1. Read the IP address
2. copy the script from origin server to destination.
3. get root access on destination server
4. run the script on destination server
5. return to the origin server
Code:
#!/bin/bash
echo "Enter Server IP... (5 Replies)
Hi all,
i need to run a shell script on remote server. I have created file .bat file in windows server with following code,
c:\Users\Desktop\putty.exe -ssh -pw password user@server ./script.sh
i need to run the script.sh in my remote server
Above command is not working, any... (4 Replies)
Hello,
What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed.
Scenario1:
To copy files from server2 to data server:$ scp -r root@server2_ip:/var/www/html/*.* /var/
When I enter... (6 Replies)
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
local script:
cat > first.sh
cd /tmp
echo $PWD
echo `whoami`
cd /tmp/123
tar -cvf 789.tar 456
sleep 10
except script:
cat > first
#!/usr/bin/expect
set ip 10.5.15.20
set user "xyz123"
set password "123456"
set script first.sh
spawn sh -c "ssh $user@$ip bash < $script" (1 Reply)
Discussion started by: Aditya Avanth
1 Replies
LEARN ABOUT DEBIAN
mldonkey_command
MLDONKEY_COMMAND(1) [FIXME: manual] MLDONKEY_COMMAND(1)NAME
mldonkey_command - a wrapper to send command to a mlnet server.
SYNOPSIS
mldonkey_command [-P port] [-h host] [-u user] [-p password] [-q] [-s] [-v] {"mlnet command"...}
DESCRIPTION
This manual page documents briefly the mldonkey_command command.
This manual page was written for the Debian GNU/Linux distribution because the original program is Debian GNU/Linux specific.
This program allow you to send command to a mlnet instance. The idea is to provide a simple script to do batch job with mlnet
OPTIONS -P
Port of the telnet mldonkey server. By default 4000
-h
Host of the telnet mldonkey server. By default localhost
-u
Username to use while connecting. By default admin
-p
Password to use while connecting. If none is specified, ask it on stdin
-q
Run without displaying command result
-s
Use stdin to enter command
-v
Display login information
"mlnet commands"
Any commands you can type in a telnet session connected to mlnet. Try "mldonkey_command longhelp" to see a complete listing.
LICENSE
This manual page was originally written by Sylvain Le Gall gildor@debian.org for the Debian GNU/Linux system (but may be used by others).
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Lesser General Public License, Version 2.1
or any later version published by the Free Software Foundation; considering as source code all the file that enable the production of this
manpage.
SEE ALSO
mlnet (1)
AUTHORS
Sylvain Le Gall <gildor@debian.org>
Author.
Mehdi Dogguy <dogguy@pps.jussieu.fr>
Author.
COPYRIGHT
Copyright (C) 2003, 2004, 2005, 2006 Sylvain Le Gall
Copyright (C) 2009 Mehdi Dogguy
[FIXME: source] Mar 14, 2009 MLDONKEY_COMMAND(1)