<div dir="ltr"><div><span class="gmail-im">Dnes som menej chapavy, je tu prilis teplo na mna.<br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">ak je "writevme" prikaz, ktory je rozpoznatelny z terminalu, tak napr takto?<br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">for i in `seq 0 200 10000` ; do <br></span></div><div><span class="gmail-im"> argumenty=`printf "300114 1 %x\n" $i`; <br></span></div><div><span class="gmail-im"> writevme $argumenty;<br></span></div><div><span class="gmail-im"></span></div><div><span class="gmail-im"> sleep 1; <br></span></div><div><span class="gmail-im">done</span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im">pripadne riadok s writevme</span></div><div><span class="gmail-im"> /cela/cesta/k/prikazu/writevme $argumenty ;</span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div><div><span class="gmail-im"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">št 30. 7. 2020 o 16:41 balu <<a href="mailto:balu@k-net.fr">balu@k-net.fr</a>> napísal(a):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ano, potialto mi to uz fungovalo. Hodnota, ktora sa vypisuje je ale <br>
prikaz, ktory sa ma vykonat. Zaregistroval som existenciu prikazu eval, <br>
ale asi nechapem syntax a posuvanie si argumentov.<br>
b.<br>
<br>
<br>
On 30/07/2020 16:30, Dodo Racek wrote:<br>
> <br>
> Tkaze dekadicka hodnota "i" sa ma previest do HEX a tak vypisat ?<br>
> ( \n ) je odriadkovanie<br>
> <br>
> for i in `seq 0 200 10000` ; do printf "writevme 300114 1 %x\n " $i; <br>
> sleep 1; done<br>
> <br>
> <br>
> <br>
> št 30. 7. 2020 o 16:23 balu <<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a> <mailto:<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a>>> <br>
> napísal(a):<br>
> <br>
> x nie je premenna, ale prevod cisla do hex formatu. Argument pre prikaz<br>
> writevme je v hex tvare<br>
> <br>
> <br>
> On 30/07/2020 16:22, Dodo Racek wrote:<br>
> ><br>
> > "I" sa ma menit pravidelens inkrementom ?<br>
> ><br>
> > seq [OPTION]... FIRST INCREMENT LAST<br>
> > vygeneruje sekvenciu cisel do do s inkrementom<br>
> ><br>
> > "x' je dalsia premenna ? , teda nieco, co ma nejaku hodnotu a treba<br>
> > vypisat jej hodnotu ?<br>
> ><br>
> > Napriklad:<br>
> ><br>
> > x=1;<br>
> > for i in `seq 0 200 10000` ; do<br>
> > echo "writevme 300114 1 $x $i"<br>
> > sleep 1<br>
> > done<br>
> ><br>
> ><br>
> > alebo je potrebne napisat %x ako retazec ?<br>
> ><br>
> > for i in `seq 0 200 10000` ; do<br>
> > echo "writevme 300114 1 $x $i"<br>
> > sleep 1<br>
> > done<br>
> ><br>
> ><br>
> ><br>
> > Dodo<br>
> ><br>
> ><br>
> ><br>
> > št 30. 7. 2020 o 15:55 Daniel Valuch <<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a><br>
> <mailto:<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a>><br>
> > <mailto:<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a> <mailto:<a href="mailto:balu@k-net.fr" target="_blank">balu@k-net.fr</a>>>> napísal(a):<br>
> ><br>
> > Zdravim osadenstvo,<br>
> ><br>
> > potrebujem narychlo hacknut linuxovy script, ale trochu zapasim.<br>
> ><br>
> > Ciel je spustit prikaz vo for slucke, pricom sa bude menit jeho<br>
> > argument. Prikaz vyzera napriklad takto:<br>
> ><br>
> > writevme 300114 1 123<br>
> ><br>
> > Pricom vsetko okrem posledneho 123 je fixne a hodnota 123 sa<br>
> bude menit<br>
> > v slucke.<br>
> ><br>
> > Zatial mam toto, ale neviem ako vykonat vysledok printf<br>
> ><br>
> > for i in {0..1000..200}<br>
> > do<br>
> > printf "writevme 300114 1 %x" i<br>
> > sleep 1<br>
> > done<br>
> ><br>
> > nejake metodicke usmernenie? :-)<br>
> ><br>
> > b.<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> <<a href="http://www.HW.cz" rel="noreferrer" target="_blank">http://www.HW.cz</a>> <<a href="http://www.HW.cz" rel="noreferrer" target="_blank">http://www.HW.cz</a>><br>
> > <a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <mailto:<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>><br>
> <mailto:<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <mailto:<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>>><br>
> > <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a> <<a href="http://www.HW.cz" rel="noreferrer" target="_blank">http://www.HW.cz</a>><br>
> > <a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <mailto:<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>><br>
> > <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> ><br>
> _______________________________________________<br>
> HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a> <<a href="http://www.HW.cz" rel="noreferrer" target="_blank">http://www.HW.cz</a>><br>
> <a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a> <mailto:<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a>><br>
> <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> <br>
> <br>
> _______________________________________________<br>
> HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
> <a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
> <a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
> <br>
_______________________________________________<br>
HW-list mailing list - sponsored by <a href="http://www.HW.cz" rel="noreferrer" target="_blank">www.HW.cz</a><br>
<a href="mailto:Hw-list@list.hw.cz" target="_blank">Hw-list@list.hw.cz</a><br>
<a href="http://list.hw.cz/mailman/listinfo/hw-list" rel="noreferrer" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br>
</blockquote></div>