Check if remote destination is available before running scp command
I have a script on a Linux box which scp the files to windows server without any issues. but there are time frames where the windows server will not be available due to maintenance. hence I need to check if the remote location is available before running the scp command.
I tried with ssh command to check if remote directory exists but does not work and get the error message below
Hi,
I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out.
#!/bin/sh
echo "select Address from Device where Cust =... (5 Replies)
Hi,
I have username/password for a remote server. I would like to have list of filenames and their size in a particular directory of remote server.
Now Problem is - I can not use rsh command as I can not modify rhost file of remote server.
Thanks in advance.
Sanjay (1 Reply)
Hi,
When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code.
Please give some resolution.
SCPClient client = new... (1 Reply)
Hi ,
How to check whether web server is running from remote machine
How to check whether web server is running on web server itself
Can any one help me soon (1 Reply)
Hi,
i have a shellscript, where in i need to connect to different server start these three jobs and exit from the server and start the same three jobs on local server.
ssh user@remotehost 'bash -s' << EOF
${GETT_HOME}/bin/start1 &
sleep 10
${GETT_HOME}/bin/start2 &
sleep 10... (1 Reply)
I am using the below command to scp the file to destination server ($server).
The ssh keys have been created between the source and destination servers. Still I am getting password authentication after executing the below scp command:
scp $Local_dir/$file_pattern* $username@$server:/$ftp_dir/... (1 Reply)
I am having an issue in running a nohup command in a remote linux box from a linux box. Here are the details.
Linux Machine 1: I have a script which starts a services and dumps the output into a log file.
nohup sh weblogic.sh >> /home/log.out &
I have placed the entire command in a... (2 Replies)
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)
Hello Guys,
I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server.
Could you please suggest some that can be done without ssh or similar sort of... (8 Replies)
Discussion started by: UnknownGuy
8 Replies
LEARN ABOUT ULTRIX
xunmapwindow
XUnmapWindow(3X11) MIT X11R4 XUnmapWindow(3X11)Name
XUnmapWindow, XUnmapSubwindows - unmap windows
Syntax
XUnmapWindow(display, w)
Display *display;
Window w;
XUnmapSubwindows(display, w)
Display *display;
Window w;
Arguments
display Specifies the connection to the X server.
w Specifies the window.
Description
The function unmaps the specified window and causes the X server to generate an event. If the specified window is already unmapped, has no
effect. Normal exposure processing on formerly obscured windows is performed. Any child window will no longer be visible until another
map call is made on the parent. In other words, the subwindows are still mapped but are not visible until the parent is mapped. Unmapping
a window will generate events on windows that were formerly obscured by it.
can generate a error.
The function unmaps all subwindows for the specified window in bottom-to-top stacking order. It causes the X server to generate an event
on each subwindow and events on formerly obscured windows. Using this function is much more efficient than unmapping multiple windows one
at a time because the server needs to perform much of the work only once, for all of the windows, rather than for each window.
can generate a error.
Diagnostics
A value for a Window argument does not name a defined Window.
See AlsoXChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XMapWindow(3X11)XRaiseWindow(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XUnmapWindow(3X11)