merci! il me semblait bien que c'était tout simple, fallait y penser (ou bien lire la doc?) ah oui effectivement dans perlop: ... In list context, returns a list of lines...
Pourtant je l'ai lu... on va mettre ça sur le fait qu'on est vendredi. Encore merci. Le 13/01/06, Alain Vander Velde<[EMAIL PROTECTED]> a écrit : > @results=`at -l`; > > > Thomas Silvestre wrote: > > >Salut la liste, > > > >je sêche sur un truc qui doit être vraiment simple en perl. > >J'aimerais faire un processing de l'output de "at -l" en perl. > > > >Voici l'ouput de at: > >[EMAIL PROTECTED]:~/tmp/MW/dev$ at -l > >9 2006-01-20 00:00 a sys12 > >10 2006-02-13 01:00 a sys12 > > > >j'arrive à récupérer chaques éléments, mais seulement de la première ligne: > > > >my $atqo=qx/at -l/; > > my($aJ,$aY,$aM,$aD,$aH,$aM)=( $atqo =~ m/(\d+).*(\d+)-(\d+)-(\d+)\ > >(\d+):(\d+)/ ); > > > >en fait je désire faire un tableau dans lequel je pourrai retrouver > >ces valeurs mais je n'arrive pas à "boucler" dans la variable $atqo. > > > >Y-a-t-il un avis éclairé sur la liste? > >-- > >Thomas Silvestre > >_______________________________________________________ > >Linux Mailing List - http://www.unixtech.be > >Subscribe/Unsubscribe: > >http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux > >Archives: http://www.mail-archive.com/linux@lists.unixtech.be > >IRC: chat.unixtech.be:6667 - #unixtech > >NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech > > > > > > > > > > > > > -- > Alain Vander Velde > National Botanic Garden of Belgium > Domaine de Bouchout > B-1860 Meise > > Tel: +32.2.260.09.66 > Fax: +32.2.260.09.45 > > _______________________________________________________ > Linux Mailing List - http://www.unixtech.be > Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux > Archives: http://www.mail-archive.com/linux@lists.unixtech.be > IRC: chat.unixtech.be:6667 - #unixtech > NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech > -- -- Thomas Silvestre _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://lists.unixtech.be/cgi-bin/mailman/listinfo/linux Archives: http://www.mail-archive.com/linux@lists.unixtech.be IRC: chat.unixtech.be:6667 - #unixtech NNTP: news.gname.org - gmane.org.user-groups.linux.unixtech