Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
#!/bin/bashclearif [ -e filename ] /bin/bash /fullpathname/script_a exitelse /bin/bash /fullpathname/script_b exitfiexit
so the ./var is another script to store all the data into1) ..to9)is it?what about this.. am i correct?
./mala $1 $2 $3 $4 $5 $6 $7 $8 $9if [ $? = 0 ]; thenecho "success"fidoes this mean that, if ./mala run successfully without error, it will return 0.if there is an error, it will come maybe from $5.. or else..am i right?
#!/bin/shname=$1tel=$2........if [ $tel="" ];then exit 1fi......
if [ $? -eq 1 ];then echo "telephone number is invalid" fi