03-18-2009
Not familiar with behaviour of sshd on Windows but one can run a command on a remote host thus:
$ ssh host command
So you might be able to run "dir" on your Windows machine from your Solaris box like this:
$ ssh windowsmachine dir > resultfile 2>&1
and then grep the resultfile for the directory you are looking for and if you are lucky then you may get the string <DIR> (DOS style dir result) on each line that is a directory also!
9 More Discussions You Might Find Interesting
1. IP Networking
Hi. In my KSH script I'm running a command on a remote server. I want to know how I can test to see if the remote server is available (accessible) prior to running the command. Any ideas?
My command looks like:
`ssh $USER@$TARGET_SERVER_DNS ls -l $REMOTE_FOLDER `
This check should be... (1 Reply)
Discussion started by: dylanmilks
1 Replies
2. Shell Programming and Scripting
Hi. In my KSH script I'm running a command on a remote server. I want to know how I can test to see if the remote server is available (accessible) prior to running the command. Any ideas?
My command looks like:
`ssh $USER@$TARGET_SERVER_DNS ls -l $REMOTE_FOLDER `
This check should be... (4 Replies)
Discussion started by: dylanmilks
4 Replies
3. Linux
I am very new with servers and have never used Linux. The server I'm looking at is not currently connected to anything, and I wish to install Linux on this server. It doesn't have a monitor (no video card) or keyboard. It does have a DVD. Can I communicate with that server using a Windows PC to... (8 Replies)
Discussion started by: kvalenti
8 Replies
4. Shell Programming and Scripting
Hello, I would appreciate if any one can help me on this.
The below script start running at 12:30AM. Every 5 min, i go and check the remote site. If i see filewatch.txt over there, then i need to call another shell script and load the data into database. If i don't see that file, then i have to... (2 Replies)
Discussion started by: govindts
2 Replies
5. Shell Programming and Scripting
hi,
Im using the following code for FTP
#!/usr/bin/ksh
ftp -v -n "10.29.45.11" << cmd
user "mahesva" "mahesva123"
get rtl.tar
quit
cmd
Below is the log when i run the above code
**********************************
Connected to 10.29.45.11.
220 (vsFTPd 2.0.1)
530 Please login with USER... (20 Replies)
Discussion started by: dll_fpga
20 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
I have a problem in my script,
I need to check whether file exists in remote server or not,
if the file exists, then stop copy
else copy the file to the server..
my code is something like this
while read $server
do
if ssh $server "cd $directory_name; if ; then echo "Error:... (2 Replies)
Discussion started by: beezy
2 Replies
7. Shell Programming and Scripting
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)
Discussion started by: rammm
4 Replies
8. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
9. Shell Programming and Scripting
I am getting a file (abc.txt) using scp from remote server.
scp <connect string> -i $HOME/.ssh/id_dsa rem_id@hostname:/var/prod/abc.txt /var/prod/abc.out
Before loading I need to check if the file is indeed same , for that I thought of checking the line count but when I used ssh command it was... (3 Replies)
Discussion started by: lalitpct
3 Replies
LEARN ABOUT DEBIAN
xunmapwindow
XUnmapWindow(3) XLIB FUNCTIONS XUnmapWindow(3)
NAME
XUnmapWindow, XUnmapSubwindows - unmap windows
SYNTAX
int XUnmapWindow(Display *display, Window w);
int XUnmapSubwindows(Display *display, Window w);
ARGUMENTS
display Specifies the connection to the X server.
w Specifies the window.
DESCRIPTION
The XUnmapWindow function unmaps the specified window and causes the X server to generate an UnmapNotify event. If the specified window is
already unmapped, XUnmapWindow 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 Expose events on windows that were formerly obscured by it.
XUnmapWindow can generate a BadWindow error.
The XUnmapSubwindows function unmaps all subwindows for the specified window in bottom-to-top stacking order. It causes the X server to
generate an UnmapNotify event on each subwindow and Expose 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.
XUnmapSubwindows can generate a BadWindow error.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
XChangeWindowAttributes(3), XConfigureWindow(3), XCreateWindow(3), XDestroyWindow(3), XMapWindow(3) XRaiseWindow(3)
Xlib - C Language X Interface
X Version 11 libX11 1.5.0 XUnmapWindow(3)