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 > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
checking ERRors in files ali560045 Shell Programming and Scripting 4 06-19-2008 10:56 AM
checking entries between files za_7565 Shell Programming and Scripting 8 12-19-2007 05:54 AM
how to login into another ip and checking for the files saikumar_n Shell Programming and Scripting 2 07-11-2007 02:34 PM
checking for files on ftp... jithinravi UNIX for Dummies Questions & Answers 3 06-22-2007 11:25 AM
Checking modified time of files am97395331 UNIX for Dummies Questions & Answers 4 07-02-2003 10:55 AM

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 07-11-2007
saikumar_n saikumar_n is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 2
how to login into another ip and checking for the files

Hi All,
Good Day.
need one help regarding unix script.
i have to check whether the particular file is there or not in another ip address.
suppose....there is file in this ip address 2.160.64.130 in particualar location.
i have to veify this from another ip adress(Say 2.160.64.131).if the file is present then i have to send an e-mail
please provide the answer for this problem


Thanks
N.S.kumar
  #2 (permalink)  
Old 07-11-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
  
 

Join Date: Nov 2006
Location: Bulgaria
Posts: 1,322
It depends... If the file is available via web, you can use curl and parse the response later, if not, FTP access might be useful, e.g. login, list files, get the answer, and if the file is there, send mail.
If there isn't FTP access, but SSH instead - good, logic as follows :
Code:
ssh user@host.domain.com ls -la filename 
if filename is present 
   then mail certain content.
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 10:36 PM.


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