Sponsored Content
Operating Systems Solaris Checking a file on a remote windows server Post 302298839 by TonyFullerMalv on Wednesday 18th of March 2009 06:07:48 PM
Old 03-18-2009
When you ssh in you will normally be placed into the user's home directory.

Interesting about the Unix commands, you may be able to do:
$ ssh user@windowsbox "cd /export/home && ls -l"

or at least:

$ ssh user@windowsbox "ls -l /export/home"
 

9 More Discussions You Might Find Interesting

1. IP Networking

Checking for availability of remote server

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

Checking for availability of remote server

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

Install Linux on remote server from Windows PC

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

Checking the file in remote server using SFTP

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

FTP using script not working (for transfering file from a remote unix server to windows PC.)

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

Checking files in remote server and decide to copy file or not

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

To run a shell script in remote server from windows batch file

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

Do I require remote login access to a windows server to transfer files from a UNIX server

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

Checking integrity copied from remote server using UNIX command

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
Arrange(1x)						   AfterStep X11 window manager 					       Arrange(1x)

NAME
Arrange - AfterStep module for arranging windows in a tiling or cascading order CONFIGURATION OPTIONS
DESCRIPTION
Arrange was developed to replace Tile and Cascade which were present in AfterStep 1.8 and stopped working with the introduction of After- Step 2.0. Like Tile and Cascade Arrange can be used to tile or cascade windows subject to certain constraints. By default Arrange will cascade windows located on the current screen. OPTIONS
-a Causes all window styles to be affected, even ones with the WindowListSkip style. -alldesks Causes windows on all desks to be effected. -desk Causes all windows on the desk to be cascaded instead of the current screen only. -H Causes windows to be tiled horizontaly. This will only have an effect if -tile is passed. -incx arg Specifies a horizontal increment which is successively added to arranged windows. arg is a percentage of screen width, or pixel value if a p is suffixed. Default is 20p. -incy arg Specifies a vertical increment which is successively added to arranged windows. arg is a percentage of screen height, or pixel value if a p is suffixed. Default is 20p. -m Causes maximized windows to also be affected (implied by -all). -mn arg Tiles up to arg windows in tile direction. If more windows exist, a new direction row or column is created (in effect, a matrix is created). -noraise Inhibits window raising, leaving the depth ordering intact. -nostretch Inhibits window expansion when using the -resize option. Win- dows will only shrink to fit the maximal width and height (if given). -pattern arg Only arrange windows matching the supplied pattern. -r Reverses the window sequence. -resize Forces all windows to resize to the constrained width and height (if given). -s Causes sticky windows to also be affected (implied by -all). -t Causes transient windows to also be affected (implied by -all). -tile Causes windows to be tiled not cascaded. -u Causes untitled windows to also be affected (implied by -all). INVOCATION
Arrange can be invoked from the autoexec file or by binding the action "Module Arrange [args]" to a key-stroke in a feel file. CONFIGURATION OPTIONS
Command-line arguments passed to Arrange are described in the OPTIONS section. Up to four numbers can be placed on the command line that are not switches. The first pair specify an x and y offset to start the first window (default is 0, 0). The second pair specify an absolute coordi- nate reference denoting the lower right bounding box for tiling. If any number is suffixed with the letter p, then it is taken to be a pixel value, otherwise it is interpreted as a screen percentage. Speci- fying zero for any parameter is equivalent to not specifying it. This invocation will horizontally tile windows with a bounding box which starts at 10 by 10 percent into and down the screen and ends at 90 by 90 percent into and down the screen. Arrange 10 10 90 90 -tile -H It is probably not a good idea to delete windows while windows are being arranged. 3rd Berkeley Distribution AfterStep v.2.2.11 Arrange(1x)
All times are GMT -4. The time now is 07:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy