Search Results

Search: Posts Made By: academico69
2,658
Posted By academico69
but , they no repeat the loop while de condition...
but , they no repeat the loop while de condition its true ?

in this case a <= limite , so

if a = 1 do the first condition.

not do the second condition.

a++

out of while ,


the...
2,658
Posted By academico69
thank you very much but , i have a problem ...
thank you very much but , i have a problem

the code now is


#!/bin/bash

limite=2
a=1

while [ "$a" -le "$limite" ]; # this is okay, no problem

do

if [ "$a" -eq "1" ];
...
2,658
Posted By academico69
#!/bin/bash limite=3 a=0 while ["$a"...
#!/bin/bash

limite=3
a=0

while ["$a" -le "3"];
do


if ["$a" -eq "1"];
then

pru=/usr/bin/mei.txt
cat $pru | mail -s "IMEIS" mathias@wirtel.com.ar

fi
2,658
Posted By academico69
the systems return me /usr/bin/imei: line...
the systems return me

/usr/bin/imei: line 6: [: $a: integer expression expected
/usr/bin/imei: line 35: [: $a: integer expression expected


thanks and sorry , im newbie with this
2,658
Posted By academico69
#!/bin/bash limite=3 while [ "$a=1" -le...
#!/bin/bash

limite=3

while [ "$a=1" -le $limite ];
do



in the first while

but im not very sure of that
2,658
Posted By academico69
no , unix return me that errors ...
no , unix return me that errors


/usr/bin/imei: line 5: [: =1: integer expression expected
/usr/bin/imei: line 34: [: : integer expression expected
2,658
Posted By academico69
script with mail
hello , what is wrong in this script ?
#!/bin/bash

limite=3

while [ "$a=1" -le $limite ];
do


if [ "$a" -eq 1 ];
then

pru=/usr/bin/mei.txt
cat $pru | mail -s "IMEIS"...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy