10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Geeks,
Could you please help me out in my script and identify the missing piece. I need to check/get the exit status of a remote command executed on remote host through script and send out an email when process/processes is/are not running on any/all server(s).
Here's the complete... (5 Replies)
Discussion started by: lovesaikrishna
5 Replies
2. Shell Programming and Scripting
Hi All,
I would like to connect from "Instance A" to "Instance B" with the help of sftp.
Where as Instance B is having clustered servers ( 2 servers pointing same instance ).
Now, my question is before connecting to "Instance B" from "Instance A" how do know whether server is running or not.... (3 Replies)
Discussion started by: Girish19
3 Replies
3. Shell Programming and Scripting
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)
Discussion started by: $scipt_Kid
1 Replies
4. Solaris
Hi there
I am in the process of writing a script to check whether a port on a remote system is up or not.
Here's what I have so far:
#!/bin/bash
telnet xx.xx.xx.xx 80 | (echo "^]")
if ]; then
echo "Please check Web services " | mailx -s "Please check webservices... (1 Reply)
Discussion started by: notreallyhere
1 Replies
5. Shell Programming and Scripting
hi,
Say me the command to check the status of server. whether its up or down (11 Replies)
Discussion started by: satheeshkr_cse
11 Replies
6. Shell Programming and Scripting
killall -KILL rdiff-backup
Is it a valid command coz i couldn't find a -KILL option for killall in the man page. (1 Reply)
Discussion started by: proactiveaditya
1 Replies
7. Shell Programming and Scripting
Hi!
I have a script, which calls another script on a remote machine using ssh.
I need to check if the remote running script is succesful. If it is succesful I need to continue the for loop (run it on another machine) or break the loop.
Please let me know if anyone has an idea on checking the... (3 Replies)
Discussion started by: nua7
3 Replies
8. Shell Programming and Scripting
Hi,
I am working on a shell script that would verify if the mount command has executed or not. So , i have been doing this.
mount /dev/cdrom /mnt/cdrom
echo "$?"
if ; then
echo " Mount succesful"
else
echo " Mount unsuccessful"
fi (3 Replies)
Discussion started by: eamani_sun
3 Replies
9. Shell Programming and Scripting
Hi to everyone.
How can I get the exit status from a remote command executed with rexec? :eek:
machine A has RedHat Linux 9 and the remote machine B has SCO UNIX.
Code:
rexec -l user -p password host sh /u/files/scripts/seq_cal.sh 2006 08
I want the exit status returned by... (1 Reply)
Discussion started by: zoonalex
1 Replies
10. Shell Programming and Scripting
Hi All,
Thanks in Advance.
My requirement is there are some data files to be updated(some times new files get created) regularly in server A, these files are to be updated to the server B(backup server) by using SCP, I have to write a script for this purpose, before copying the files to server... (3 Replies)
Discussion started by: rajus19
3 Replies
XON(1) General Commands Manual XON(1)
NAME
xon - start an X program on a remote machine
SYNOPSIS
xon remote-host [-access] [-debug] [-name window-name] [-nols] [-screen screen-no] [-user user-name] [command ...]
DESCRIPTION
Xon runs the specified command (default xterm -ls) on the remote machine using rsh, remsh, or rcmd. Xon passes the DISPLAY, XAUTHORITY and
XUSERFILESEARCHPATH environment variables to the remote command.
When no command is specified, xon runs 'xterm -ls'. It additionally specifies the application name to be 'xterm-remote-host' and the win-
dow title to be '-fIremote-host'.
Xon can only work when the remote host will allow you to log in without a password, by having an entry in the .rhosts file permitting
access.
OPTIONS
Note that the options follow the remote host name (as they do with rlogin).
-access
Runs xhost locally to add the remote host to the host access list in the X server. This won't work unless xhost is given permission
to modify the access list.
-debug Normally, xon disconnects the remote process from stdin, stdout and stderr to eliminate the daemon processes which usually connect
them across the network. Specifying the -debug option leaves them connected so that error messages from the remote execution are
sent back to the originating host.
-name window-name
This specifies a different application name and window title for the default command (xterm).
-nols Normally xon passes the -ls option to the remote xterm; this option suspends that behaviour.
-screen screen-no
This changes the screen number of the DISPLAY variable passed to the remote command.
-user user-name
By default, xon simply uses rsh/remsh/rcmd to connect to the remote machine using the same user name as on the local machine. This
option cause xon to specify an alternative user name. This will not work unless you have authorization to access the remote
account, by placing an appropriate entry in the remote users .rhosts file.
BUGS
Xon can get easily confused when the remote-host, user-name or various environment variable values contain white space.
Xon has no way to send the appropriate X authorization information to the remote host.
X Version 11 Release 6.6 XON(1)