Advertisement

04.25.2006 at 09:46AM PDT, ID: 21826751
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

need help about shell script

Asked by Far22 in Perl Programming Language

Tags: , , , ,

Hi expert

i wrote a shell scrip when i run it by cron i got this message in cron log file:
stty: standard input: Invalid argument

i did some search but i couldnt find any answer for that. could you pls help me
this ispart of  my scrip and error message shows  up after ping to server and before check bzy file. it seems this error doent interrupt the script from running.

#!/bin/sh

PATH=$PATH:/usr/bin:/usr/ucb:/usr/bin/X11:/usr/sbin:/sbin:/usr/etc:/etc:/usr/local/bin:/usr2/local/bin:/informix/bin:/usr2/reporting/cvs-bprpt/script:/usr2/reporting/bin:/usr4/faran/viewedi

EDIDIR=/usr4/faran
BIN=$EDIDIR/edi_script
ID=$1
FI=$2
PREFIX=$3
TIME_STAMP=`date +%H%M%S`
TMPDIR=$EDIDIR/cd_batch

tmpfile=$TMPDIR/$FI.dat  
OFILE=$PREFIX$TIME_STAMP.EDI  

THELOG=/usr2/logfile/edi_transcd.log

echo "oFile $OFILE"

# --------  check to see if there is a file ---------------/
cd $EDIDIR/files5

i=`ls *.$ID 2> /dev/null |wc -l `

if(test "$i" -eq 0) then
      echo "no such file"
      exit 0
fi
# ------- check connection to ftpserver  -----/
ping c2kaftqa.cucbc.com -c 4 2>>  $THELOG >> $THELOG
echo "connect to server $?"
if(test $? -ne 0)
then
   echo "edi_tocd:`date` - No connection to ftp server c2kaftqa.cucbc.com"  >> $THELOG
   sendmon 1 "edi_tocd: No connection to ftpserver BBSFTP, please check ftpserver A.S.A.P"
   exit 1
fi

# ------- check bzy file time stamp  -----/
/usr4/edi/edi_script/check_connect_direct.tandem $FI "bzy"

echo "check bzy $?"
if (test $? -ne 0 )
then
   echo "Please check edica$ID.bzy file under $FI on ftpserver, transmission has been hold"
   sendmon 1 "edi_tocd: Pls. check edica$ID.bzy file under $FI on ftpserver, transmission stopped"
   exit 1
fi

thanks a lot
Far22Start Free Trial
[+][-]04.25.2006 at 10:19AM PDT, ID: 16536140

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: invalid, argument, standard, shell, script
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 4
Solution Grade: A
 
 
[+][-]04.25.2006 at 01:27PM PDT, ID: 16538165

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.25.2006 at 02:25PM PDT, ID: 16538818

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.25.2006 at 03:20PM PDT, ID: 16539267

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.25.2006 at 11:21PM PDT, ID: 16541401

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.02.2006 at 11:39AM PDT, ID: 16589259

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.05.2006 at 09:11PM PDT, ID: 17257685

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.10.2006 at 12:47AM PDT, ID: 17285887

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-44