![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ls command in Remote Server | vasuarjula | Shell Programming and Scripting | 6 | 06-08-2008 12:11 PM |
| ls command in Remote Server | vasuarjula | AIX | 0 | 05-30-2008 10:22 PM |
| script to send command periodically to remote server | sayeo | Shell Programming and Scripting | 2 | 03-17-2008 03:42 AM |
| Transfer file from local unix server to remote server | indira | HP-UX | 2 | 05-02-2007 06:15 PM |
| remote server command in a job | Jimbo | Shell Programming and Scripting | 2 | 01-30-2002 03:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
ls -ltr command On Remote server
I am writing a script where in i have to log into a remote machine and check for necessary file by typing (ls -ltr *200505) (this gets all 05month of 2008 yr files) and if files are found get them to the local machine. If not found print a message saying no files on local machine.
When i was trying to accomplish this , i was able to log in to the remote server but cannot write ls -ltr command on remote server. When i tried , it says "Remote file local file" i couldnt understand. Please help. |
|
||||
|
Hi,
Actually i think first you have to connect to the remote server and then see for your existence of it trough if command and if found then you cn use the move command and move it across to some temporary file and then transfer it across to the other server using the scp command... I thinkthis sould work.. |
|
||||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|