checking file whether existed in another server or not


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting checking file whether existed in another server or not
# 1  
Old 05-08-2009
checking file whether existed in another server or not

Hi,
i am in 272.22.22.32 server, and i want to check whether a file test.txt file exists in different server like 372.23.23.23 using shell script. can any one help me out.
# 2  
Old 05-08-2009
Are these system are configured for trusted host?

How kind of session you will be using for connection eg ssh, telnet, ftp
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

Checking FTP server file exist or not

I am trying to delete old file in ftp server, after transferring new file successfully . but here i am checking both the file available or not using ls command. if both the file available means i need to get file_new and file_old file size as greater than zero. but i am getting only for... (3 Replies)
Discussion started by: elango963
3 Replies

3. Shell Programming and Scripting

Create a file using a existed file

Hello everyone, My problem is suppose I have one file name dipanjan.conf and the format of this file is as follows- Name : Ddd Rrr Ooo Email : abc@pqr.com Mobile No : +8801911000000 Now, I want to create a new file using this one by shell script giving parameter (1)name, (2)email &... (4 Replies)
Discussion started by: sreejond
4 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

checking file whether existed in another server or not

need a shell script in unix to check whether a file is existed in dir after connecting using ftp (2 Replies)
Discussion started by: KiranKumarKarre
2 Replies

6. Solaris

Checking a file on a remote windows server

Hi Everyone! This is what I need to do... I am deploying some directories over to a windows server 2000/3 box from my solaris10 box and I need to make sure the directories exist. The only form of connection I have to work with is SSH Currently, my script deploys the directories over... (13 Replies)
Discussion started by: Keepcase
13 Replies

7. HP-UX

checking process existed

On HP-UX, in application, if the process id has been get with the getpid() and sotred in database, then other monitor process want to check it if the process is existed, are there any system function can do it? I do not want to use the shell script, because it should use popen function to excuted... (5 Replies)
Discussion started by: Frank2004
5 Replies

8. Solaris

Checking Server work load

Hey guys, I was task to look at a couple DNS servers for a co worker, Now they are running Solaris 2.6 on some Ultra 10 systems. How can I check the kind of load these systems are taking, I know that I can look at the network size and how many zones these servers are SOA of, but I looking in a... (3 Replies)
Discussion started by: aojmoj
3 Replies

9. Solaris

Removing the only secodnary group existed from a user on SUN or HP

I want to know the command line to removed the only secondary group existed from a user on an HP/SUN. :confused: (1 Reply)
Discussion started by: jquizon62
1 Replies

10. Shell Programming and Scripting

Checking if SErver is up

Hi All Does anyone have any idea on how I can check in a script if a server is responind. I thought of using ping, however if there is no response from the server this command just hangs. Regards J (3 Replies)
Discussion started by: jhansrod
3 Replies
Login or Register to Ask a Question