i need help with this i got the first part down..
Required Errorlevels
Errorlevel # Event Information
0 Script functions correctly
10 No arguments provided on command line (=0)
12 First argument present, but not what expected (“-i”)
13 Second argument missing on command line
14 Second argument present, but file does not exist
15 Third argument missing on command line
16 Third argument present, but not what expected (“-o”)
17 Fourth argument missing on command line
18 Too many arguments provided on command line (>4)
i have this this should be right now i need to now how to do the screen shots i linked at the bottom..
if [ $# -eq 0 ]
then
echo no arguments proviede on command line
exit 10
fi
if [ "$1" != "-i" ]
then
echo First argument present, but not what expected (“-i”)
exit 12
fi
if [ "$2" = "" ]
then
echo Second argument missing on command line
exit 13
fi
if [ ! -e $2 ]
then
echo Second argument present, but file does not exist
exit 14
fi
if [ "$3" = "" ]
then
echo Third argument missing on command line
exit 15
fi
if [ "$3" != "-o" ]
then
echo Third argument present, but not what expected (“-o”)
exit 16
fi
if [ "$4" = "" ]
then
echo Fourth argument missing on command line
exit 17
fi
if [ $# -gt 4 ]
then
echo Too many arguments provided on command line (>4)
exit 18
fi
2 part...here is the screen shot hope you can help me!!
ImageShack® - Online Photo and Video Hosting <<<--------attached photo for the 2nd part
i dont understand