07-22-2008
Use wget for example and check it's exit code which you can test while echoing $? (if it's !=0 there is probably some problem) or it's text output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to create an automated script which is called by another maually executed script.
The condition is that the no one should be able to manually execute the automated script.
The automated script can be on the same machine or it can be on a remote machine.
Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies
2. Shell Programming and Scripting
I have written the below script to determine whether a string is palindrome or not ?
But its not working, any help to debug it ?
I am new to this forum but when I searched for my question, I found that many people refused to answer this question thinking that its Homework question, Therefore I... (2 Replies)
Discussion started by: gridview
2 Replies
3. Shell Programming and Scripting
if {ping -c 1 www || { "Destination Host Unreachable" ; }}
then
{ echo "neveikia senas-pastas, web serveris" | mailx -s "Senas web serveris" mail }
endif;
this is my script but it does not work... :confused:
this script will be used to check if website is online if not then sends an... (7 Replies)
Discussion started by: big_nobody
7 Replies
4. UNIX for Dummies Questions & Answers
Hi all
(Shell: ksh Unix: NCR Unix)
Upon opening a shell, I can type a command (any command), but the shell does very little or nothing. If I cd to an unknown directory, the shell responds with "file not found", if I issue 'ls', I get no directory listing (files are present). If I issue... (2 Replies)
Discussion started by: jgrogan
2 Replies
5. Shell Programming and Scripting
hi guys ..newbie here i would like to create a simple script tat will detect wether the machine has IP or not ...
but it seems that my script doesnt really work it kept rebooting...
i set this script during boot so that it will check else it will reboot
it a shell script thou...
... (5 Replies)
Discussion started by: bladez
5 Replies
6. Shell Programming and Scripting
Hi ALL,
Is there any way, to login into a website using Shell/Perl command/script?
I am struggling on this from quite sometime but with no luck. Can you guys help, please?
My sole purpose is to login a website (Which requires Username and Password) and then extract some information from... (3 Replies)
Discussion started by: parshant_bvcoe
3 Replies
7. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
8. Infrastructure Monitoring
Hi all, me again....
I am trying to add a website to my nagios checking juggernaught
I am using the script from nagios exchange site called check_website_response (google to find it i am not allowed to post links yet, sorry)
It is in /usr/local/nagios/libexec with the rest of the default... (1 Reply)
Discussion started by: Yoshi17
1 Replies
9. Web Development
Hi
I have a website name www.gentrepid.org
I have all the setting scripts for this website in php
now as a research part, I am new to this as I havent done that before.
I have to make certain changes in the website Include some icons on the left like
"Drugs" when user click on it... (0 Replies)
Discussion started by: manigrover
0 Replies
10. Shell Programming and Scripting
hi guys
we've had nagios spewing false alarm (for the umpteenth time) and finally the customer had enough so they're starting to question nagios. we had the check interval increased from 5 minutes to 2 minutes, but that's just temporary solution. I'm thinking of implementing a script on the... (8 Replies)
Discussion started by: hedkandi
8 Replies
SHASUM(1) Perl Programmers Reference Guide SHASUM(1)
NAME
shasum - Print or Check SHA Checksums
SYNOPSIS
Usage: shasum [OPTION] [FILE]...
or: shasum [OPTION] --check [FILE]
Print or check SHA checksums.
With no FILE, or when FILE is -, read standard input.
-a, --algorithm 1 (default), 224, 256, 384, 512
-b, --binary read files in binary mode (default on DOS/Windows)
-c, --check check SHA sums against given list
-p, --portable read files in portable mode
produces same digest on Windows/Unix/Mac
-t, --text read files in text mode (default)
The following two options are useful only when verifying checksums:
-s, --status don't output anything, status code shows success
-w, --warn warn about improperly formatted SHA checksum lines
-h, --help display this help and exit
-v, --version output version information and exit
The sums are computed as described in FIPS PUB 180-2. When checking,
the input should be a former output of this program. The default mode
is to print a line with checksum, a character indicating type (`*'
for binary, `?' for portable, ` ' for text), and name for each FILE.
DESCRIPTION
The shasum script provides the easiest and most convenient way to compute SHA message digests. Rather than writing a program, the user
simply feeds data to the script via the command line, and waits for the results to be printed on standard output. Data can be fed to
shasum through files, standard input, or both.
The following command shows how easy it is to compute digests for typical inputs such as the NIST test vector "abc":
perl -e "print qw(abc)" | shasum
Or, if you want to use SHA-256 instead of the default SHA-1, simply say:
perl -e "print qw(abc)" | shasum -a 256
Since shasum uses the same interface employed by the familiar sha1sum program (and its somewhat outmoded anscestor md5sum), you can install
this script as a convenient drop-in replacement.
AUTHOR
Copyright (c) 2003-2008 Mark Shelor <mshelor@cpan.org>.
SEE ALSO
shasum is implemented using the Perl module Digest::SHA or Digest::SHA::PurePerl.
perl v5.12.4 2013-03-18 SHASUM(1)