I have a ksh script that does a bunch of things, then runs
telnet server_b
I then manually login, manually run one command (which launches an application with display back to my workstation), then logout at which point the main script takes back over, runs something else, then ends.
Is... (4 Replies)
I have two redhat linux server. i have created one script which contain some command that run on Local server as well as remote server.I am using this command to connect to remote server
ssh user1@192.x.x.x 'command'
but when i am running the script in local server it connecting to the server... (1 Reply)
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 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)
I solved my issue by using the following code
#!/bin/bash
function GET_STATUS {
#values Active Passive Failed
ssh -a localhost '/home/user/fakecommand.sh'
}
STATE="unknown"
until ]
do
echo $STATE
sleep 5
STATUS=`GET_STATUS`
echo $STATUS | grep Active &&... (1 Reply)
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)
Hi
I am trying to write a script which when I run from server A it execute few command on another server say B and show me the output.
below is the script but it is not showing me the o/p of B machine but instead showing me A machine o/p every time.
#!/bin/bash
for i in `cat... (14 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 PHP
safenet
SAFENET(8) NUT Manual SAFENET(8)NAME
safenet - Driver for SafeNet compatible UPS equipment
NOTE
This man page only documents the hardware-specific features of the safenet driver. For information about the core driver, see nutupsdrv(8).
SUPPORTED HARDWARE
This driver supports UPS equipment which can be controlled via SafeNet v1.0 for Windows (serial interface only).
EXTRA ARGUMENTS
This driver supports the following optional settings in the ups.conf(5) file:
manufacturer=value
Autodetection of this parameter is not possible yet (and it probably never will be). Therefore, this user-defined string accepts any
name. The default is unknown.
modelname=value
Like manufacturer above. The default is unknown.
serialnumber=value
Like manufacturer above. The default is unknown.
ondelay=value
Time to wait before switching on the UPS (minutes). Defaults to 1 minute.
offdelay=value
Time to wait before shutting down the UPS (seconds). Defaults to 30 seconds.
UPSCMD
This driver supports some instant commands (see upscmd(8)):
test.battery.start
Start UPS self test
test.battery.stop
Cancel UPS self test
test.failure.start
Start simulated power failure
test.failure.stop
Cancel simulated power failure
beeper.enable
Enable the UPS beeper
beeper.mute
Temporarily mute the UPS beeper
beeper.toggle
Toggle the UPS beeper
shutdown.return
Turn off the load and wait for the power to return. Uses the timer defined by offdelay.
shutdown.reboot
Turn off the load and return. Uses the timers defined by offdelay and ondelay.
KNOWN PROBLEMS
If you run the shutdown.return command with mains present, the output may stay on or switch off and not back on again. The shutdown.reboot
command will unconditionally switch on the load again (with or without mains present).
If the driver is called with the -k option (or through upsdrvctl shutdown) it tries to detect which command should be used in an attempt to
stay off until mains is present again or to cycle the output if the power returned in the mean time. This isn't bullet-proof, and you
should be prepared that the power will either not be shutdown, or that it doesn't return when the power comes back.
AUTHOR
Arjen de Korte <adkorte-guest at alioth.debian.org>
SEE ALSO
The core driver:
nutupsdrv(8)
Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/21/2012 SAFENET(8)