The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-31-2008
vasuarjula vasuarjula is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 36
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.
  #2 (permalink)  
Old 06-01-2008
abhisek.says abhisek.says is offline
Registered User
  
 

Join Date: May 2008
Posts: 9
Wink Regarding your issue

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..
  #3 (permalink)  
Old 06-01-2008
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,954
Isn't this a duplicate post ?

ls command in Remote Server
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0