Sponsored Content
Full Discussion: Error Check
Top Forums Shell Programming and Scripting Error Check Post 302550371 by ch33ry on Thursday 25th of August 2011 01:39:56 PM
Old 08-25-2011
Error Check

Hi,

I am wirting a script to check the informatica services are running.

I am executing a CONFIG FILE before starting the check..
This config file will be having all the ENV Variables..that will be used in the script.

I wanted to first check if the Config file has be executed.
If its not executed i wnated to EXIT from the script.

Below are the lines i am using....

Code:
. /apps/informatica/node1/scripts/SIT-DEV_inf_env_param.cfg
echo "Status of Previous Command :" $?
if [ $? -eq 1 ]; then
  echo "Unable to call the Config File"
  exit1;
fi

The above lines of codes are not working as expected.

Please suggest

Last edited by Scott; 08-27-2011 at 07:18 AM.. Reason: Code tags
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

check sum error

I recently checked the output from one of my backup tapes # tar -tvf /dev/rmt0 tar: directory checksum error (6 != 24439) The files wont restore , what does this mean ? on aix. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies

2. Shell Programming and Scripting

Error check

How would I go about an error check within a script. For example, if I have a script that I know might contain an error with a certain command, is there a way to give an alternate command if the first fails? The best way I can explain it, is from the Mac world, using Applescript. With AS, I can... (1 Reply)
Discussion started by: TheCrunge
1 Replies

3. Shell Programming and Scripting

script to check error

I have below script to check the word in the driectory /ora_tmp , there are many files in this directory , if the word "error" is exist in any file within 5 day , then send the mail to ora-usr@mydomain.com about which file have this word and the "error" statement , now , if I want 1. if there... (2 Replies)
Discussion started by: ust
2 Replies

4. Shell Programming and Scripting

Check Error On Script

If I have a script createdb.sh ... psql -U postgres -c "create database dbname" ... I want to write something like if IsErr(psql -U postgres -c "create database dbname") ehco "OK" else ehco "NOT OK" Thank for any reply first (3 Replies)
Discussion started by: uativan
3 Replies

5. Shell Programming and Scripting

heredoc error check

Hi, Is there any way to check the error in heredoc? Code: /export/opt/SCssh/3.7.1_C0/bin/sftp -B - csi@192.168.1.100 <<FTP lcd /WEBSERVER_LINK/data_logs/ ls pub/csidata/GeneralAppFields_8_1_Feed.out get pub/csidata/GeneralAppFields_8_1_Feed.out quit FTP Now I want to check... (1 Reply)
Discussion started by: bheeshmaraja
1 Replies

6. Shell Programming and Scripting

FTP Login Error check

How can I add a check right after the FTP to see if the login id failed or not and echo an error description indicating login failed? Here is my script: ftp $HOST1 <<END_SCRIPT>>$TARGETLOGS/$LOGFILE #ftp $HOST1 <<END_SCRIPT> cd idx prompt mget $PICKUPFILE*.txt !cp $PICKUPFILE*... (17 Replies)
Discussion started by: mrn6430
17 Replies

7. UNIX for Dummies Questions & Answers

check 1 lvm for error

i have several lv (data , data1 , data2) under same volume group, i just want to test 1 lv for data errors is that possible? this test all sdc disk , but i just want to test lv_data smartctl -a /dev/sdc because lv_data2 is corrupt , but i don't know if this lv uses sdc disk (1 Reply)
Discussion started by: prpkrk
1 Replies

8. Shell Programming and Scripting

Check error

I have a script is as below , if the output of the script is 0 , then echo abc . script1 if ]; then echo abc fi Can advise if I would like to change it , check the output , if the output only have the wold "0" , then echo abc , if the output have other word , then do nothing , can... (3 Replies)
Discussion started by: ust3
3 Replies
WMCLOCKMON-CONFIG(1)						   User Commands					      WMCLOCKMON-CONFIG(1)

NAME
wmclockmon-config - A program to configure wmclockmon SYNOPSIS
wmclockmon-config [-h] [-v] [-f configfile] DESCRIPTION
This manual page documents briefly the wmclockmon-config command. wmclockmon-config is a program to control the behaviour of wmclockmon. You can change it's style and add alarms. Command-line options override the default configuration file options. But if a file is given at command-line (with the -f option), its options will override those given before. OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -h, --help show help text and exit. -v, --version show program version and exit. -f, --cfgfile load specified configuration file FILE
wmclockmon-config uses one default file : ~/.wmclockmonrc. Empty lines or lines begining with a # are ignored. SEE ALSO
wmclockmon(1), wmclockmon-cal(1) AUTHOR
WMClockMon-config was written by Thomas Nemeth <tnemeth@free.fr>. This manpage was written by Marc Brockschmidt <marc@dch-faq.de> for the Debian GNU/Linux distribution. wmclockmon-config October 2003 WMCLOCKMON-CONFIG(1)
All times are GMT -4. The time now is 01:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy