Sponsored Content
Top Forums Shell Programming and Scripting check web server running on local and on remote machine Post 302394744 by Corona688 on Friday 12th of February 2010 11:23:09 AM
Old 02-12-2010
This should work on both:
Code:
wget --quiet --spider "http://my-website.com/" || echo "my-website.com down"

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to check running processes on remote server.

Hi, I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out. #!/bin/sh echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies

2. Shell Programming and Scripting

How to stop a script running in remote server from local script

Hi, I have googled for quite some time and couldn't able to get what exactly I am looking for.. My query is "how to stop a shell script which is running inside a remote server, using a script"??? can any one give some suggestions to sort this out. (1 Reply)
Discussion started by: mannepalli
1 Replies

3. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

4. Shell Programming and Scripting

Using local variable on a remote machine

Hi, I'm writing a korn shell script where the user enters a variable and I have to create a directory remotely which contains the name of that variable. Example. print 'Please enter variable:' read variable ssh user@host 'mkdir before_$variable;' Thank you. (4 Replies)
Discussion started by: jangozo
4 Replies

5. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

6. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

7. Shell Programming and Scripting

Help with fetching the data from remote machine from my jumpbox(local machine)

Team, Presently i am running a script from my local box(i.e jumpbox) to all the remote machines.Basically fetching basic queries like pwd,mkdir,touch etc and i am able to successfully fetch it from my local machine.But when i want to check certain database related queries like the dbstat... (20 Replies)
Discussion started by: whizkidash
20 Replies

8. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

9. UNIX for Beginners Questions & Answers

Check processes running on remote server

Hello Guys, I need some help to find out if processes are running on remote server or not. I could do 'ssh' to do that but due to some security reasons, I need to avoid the ssh & get result from remote server. Could you please suggest some that can be done without ssh or similar sort of... (8 Replies)
Discussion started by: UnknownGuy
8 Replies
TV_GRAB_FR(1p)						User Contributed Perl Documentation					    TV_GRAB_FR(1p)

NAME
tv_grab_fr - Grab TV listings for France. SYNOPSIS
To configure: tv_grab_fr --configure [--config-file FILE] [--gui OPTION] To configure AUTRES CHAINES list: tv_grab_fr --configure-more-channels To grab listings: tv_grab_fr [--config-file FILE] [--output FILE] [--days N] [--offset N] [--quiet] [--debug] To list available channels: tv_grab_fr --list-channels To show capabilities: tv_grab_fr --capabilities To show version: tv_grab_fr --version Help: tv_grab_fr --help DESCRIPTION
Output TV listings for several channels available in France (Hertzian, Cable/satellite, Canal+ Sat, TPS). The data comes from telepoche.guidetele.com. The default is to grab as many days as possible (currently 9) from the current day onwards. --configure Grab channels information from the website and ask for channel type and names to grab. --configure-more-channels Use this option to create AUTRES CHAINES list. This allows grabbing listings for some channels that are not listed in the bouquets on the website. For more informations and a list of channels see <http://www.lahiette.com/biboobox/forum/viewtopic.php?t=1842>. --list-channels List available channels for chosen bouquets. --config-file FILE Use FILE as config file instead of the default config file. This allow to have different config files for i.e. different apps. --gui OPTION Use this option to enable a graphical interface to be used. OPTION may be 'Tk', or left blank for the best available choice. Additional allowed values of OPTION are 'Term' for normal terminal output (default) and 'TermNoProgressBar' to disable the use of Term::ProgressBar. --output FILE Write to FILE rather than standard output. --days N Grab N days starting from today, rather than as many as possible. --offset N Start grabbing N days from today, rather than starting today. N may be negative. Due to the website organization, N cannot be inferior to -1. --quiet Suppress the progress messages normally written to standard error. --debug Provide additional debugging message during processing. --capabilities Show which capabilities the grabber supports. For more information, see <http://wiki.xmltv.org/index.php/XmltvCapabilities>. --version Show the version of the grabber. --help Print a help message and exit. SEE ALSO
xmltv(5) AUTHOR
The original author was Sylvain Fabre, centraladmin at lahiette dot com with patches from: - Francois Gouget, fgouget at free dot fr - Niel Markwick, nielm at bigfoot dot com - Zubrick, zubrick at number6 dot ch - Nick Morrott, knowledgejunkie at gmail dot com The application is currently maintained by Nick Morrott (knowledgejunkie at gmail dot com). perl v5.14.2 2011-06-13 TV_GRAB_FR(1p)
All times are GMT -4. The time now is 08:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy