Re: /bin/mv: Argument list too long
El dom, 10-06-2007 a las 18:37 -0500, Jose Alfredo Andaluz Prado escribió: Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:22:17PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Saludos, -Roberto Gracias Roberto C, pero ahora en cada archivo pasado me pide clave :( [...] Iñaki BC tuvo un problema hace poco con algo parecido. El problema es que el kernel impone un limite de argumentos, no tiene nada que ver con el comando que use. Hay dos opciones (a parte de un bucle), recompilar el kernel o usar 'xargs' (man xargs). En aquella oportunidad IBC uso xargs y le resultó bastante bien. Saludos! Gabriel. -- Gabriel Parrondo GNU/Linux User #404138 GnuPG Public Key ID: BED7BF43 JID: [EMAIL PROTECTED] The only difference between theory and practice is that, in theory, there's no difference between theory and practice. signature.asc Description: Esta parte del mensaje está firmada digitalmente
Re: /bin/mv: Argument list too long
El Lunes, 11 de Junio de 2007, Jose Alfredo Andaluz Prado escribió: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? La solución es usar xargs como te ha comentado Toshiro. Saludos. -- Iñaki Baz Castillo
Re: /bin/mv: Argument list too long
El 10/06/07, Jose Alfredo Andaluz Prado [EMAIL PROTECTED] escribió: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? scp ? -- b(r) { No HopE No FeaR } (r) /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Ricardo A.Frydman Administrador de Sistemas Unix http://www.eureka-linux.com.ar
Re: /bin/mv: Argument list too long
Ricardo Eureka! [EMAIL PROTECTED] wrote: El 10/06/07, Jose Alfredo Andaluz Prado escribió: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? scp ? -- (r) { No HopE No FeaR } (r) Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Ricardo A.Frydman Administrador de Sistemas Unix http://www.eureka-linux.com.ar Amigo, mv mueve dentro del equipo, de un filesystem a otro. Si lo que quieres es pasarlos a otro equipo debes hacerlo con scp. No te recomiendo que lo hagas uno a uno. hay varias opciones: 1.- tar czf archivo.tar ; scp archivo.tar [EMAIL PROTECTED]:/camino/de/salvado luego restaura desde el tar 2.- find . -name *20070608*.wav |cpio --create | sh [EMAIL PROTECTED] 'cd /33/; cpio --extract' 3.- find . -name *20070608*.wav |cpio --create --file [EMAIL PROTECTED]:/33/archivo.cpio -rsh-command=/usr/bin/ssh sh [EMAIL PROTECTED] 'cd /33/; cpio --extract archivo.cpio' y así sucesivamente, existen muchas opciones El error te sale dado que el shell primero expande la lista de archivo y es muy grande. Nota: Pueden tener errores por no haber sido probadas pero lo puedes probar directamente Saludos, MS
/bin/mv: Argument list too long
Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: /bin/mv: Argument list too long
Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto tambien intente eso y la misma respuesta :( Argument list too long -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
Jose Alfredo Andaluz Prado escribió: Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto tambien intente eso y la misma respuesta :( Argument list too long Has un ls en ese mismo directorio y muestranos los archivos esos que quieres copiar (los .wav) Saludos -- Atentamente: Alejandro Garrido Mota http://www.mogaal.com GNU/Linux Debian SID En kernel 2.6.20 Caracas-Venezuela Usuario Linux registrado #386758 Correos: [EMAIL PROTECTED] , [EMAIL PROTECTED] GPG Key Fingerprint = F6A7 EF7E 4688 70C6 6B37 A8EF F6B0 9645 B24B F200 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
scp -r *20070608*.wav [EMAIL PROTECTED]:/33/. y si tienes el puerto habilitado por defecto es el 22 haces scp -P 22 -r *20070608*.wav [EMAIL PROTECTED]:/33/. El dom, 10-06-2007 a las 18:01 -0500, Jose Alfredo Andaluz Prado escribió: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] [EMAIL PROTECTED] sateliteguayana.blogspot.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
Alejandro Garrido Mota wrote: Jose Alfredo Andaluz Prado escribió: Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto tambien intente eso y la misma respuesta :( Argument list too long Has un ls en ese mismo directorio y muestranos los archivos esos que quieres copiar (los .wav) Saludos son demasiados tanto que tambien tengo problemas con el ls predectivo:/var/spool/asterisk/monitor# ls *20070608*.wav archivo -bash: /bin/ls: Argument list too long predectivo:/var/spool/asterisk/monitor# -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
On Sun, Jun 10, 2007 at 06:08:41PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto tambien intente eso y la misma respuesta :( Argument list too long for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Saludos, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: /bin/mv: Argument list too long
Satélite Guayana wrote: scp -r *20070608*.wav [EMAIL PROTECTED]:/33/. y si tienes el puerto habilitado por defecto es el 22 haces scp -P 22 -r *20070608*.wav [EMAIL PROTECTED]:/33/. El dom, 10-06-2007 a las 18:01 -0500, Jose Alfredo Andaluz Prado escribió: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] [EMAIL PROTECTED] sateliteguayana.blogspot.com tampoko el mismo lio *Argument list too long* -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:08:41PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Saludos, -Roberto tambien intente eso y la misma respuesta :( Argument list too long for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Saludos, -Roberto Gracias Roberto C, pero ahora en cada archivo pasado me pide clave :( -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
On Sun, Jun 10, 2007 at 06:01:40PM -0500, Jose Alfredo Andaluz Prado wrote: Hola lista Tengo una pregunta tal ves un poco tonta pero ya tengo horas buscando en google y aun no logro mover muchos archivos hacia otro equipo que esta en mi lan scp signature.asc Description: Digital signature
Re: /bin/mv: Argument list too long
On Sun, Jun 10, 2007 at 06:22:17PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Saludos, -Roberto Gracias Roberto C, pero ahora en cada archivo pasado me pide clave :( Hmm. Debes de usar llave publica de ssh con ssh-agent: http://mah.everybody.org/docs/ssh Saludos, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: /bin/mv: Argument list too long
Roberto C. Sánchez wrote: On Sun, Jun 10, 2007 at 06:22:17PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Saludos, -Roberto Gracias Roberto C, pero ahora en cada archivo pasado me pide clave :( Hmm. Debes de usar llave publica de ssh con ssh-agent: http://mah.everybody.org/docs/ssh Saludos, -Roberto por mi fuera hariera eso pero lamentablemente por causas mayores aun no se permite hacer eso en ninguna filial muchas gracias Roberto -- b® { No HopE No FeaR } ® /b Be part of the change, because We are the change.. Contactos: Email: --- [EMAIL PROTECTED] MSN: --- [EMAIL PROTECTED] Projects: Orenses.org: http://www.orenses.org DeVilSoulBlacK WebLog: http://www.bitsofnews.net Your Daily News On The Web: http://www.devilsoulblack.com DeVilSoulBlacK Channel: #Siliconvalley [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: /bin/mv: Argument list too long
On Sun, Jun 10, 2007 at 06:37:56PM -0500, Jose Alfredo Andaluz Prado wrote: Roberto C. Sánchez wrote: Hmm. Debes de usar llave publica de ssh con ssh-agent: http://mah.everybody.org/docs/ssh Saludos, -Roberto por mi fuera hariera eso pero lamentablemente por causas mayores aun no se permite hacer eso en ninguna filial muchas gracias Roberto Que lástima. Llaves son mucho mas seguros que claves. Saludos, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com signature.asc Description: Digital signature
Re: /bin/mv: Argument list too long
mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Tal vez: scp *20070608*.wav [EMAIL PROTECTED]:/33/ rm -f *20070608*.wav Argument list too long for i in *20070608*.wav ; do scp $i [EMAIL PROTECTED]:/33/ rm -f $i; done Gracias Roberto C, pero ahora en cada archivo pasado me pide clave :( Probá ésto: find . -maxdepth 1 -name '*wav' | xargs -i scp {} [EMAIL PROTECTED]:/33/ -- Toshiro http://www.perlhowto.com
Re: /bin/mv: Argument list too long
Hola ! El 10/06/07, Toshiro Viera Stalker [EMAIL PROTECTED] escribió: mv -f *20070608*.wav | ssh [EMAIL PROTECTED] 'cd /33/' Alguna sugerencia ? Y hacer un .tar.gz y copiar ese unico archivo? Saludos!
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
Am 2006-08-03 18:00:12, schrieb Peter Wiersig: Der Grossteil meines Spams wird an anderen Merkmalen als dem Body klassifiziert und ich erlebe in den letzten Wochen einem Zug der Spammer die versuchen speziell Bayes Filter zu umgehen. Schon aufgefallen, das viele Worte in Betreffzeilen einen Linux/OSS-Software Bezug erhalten? Auch, aber komplette Textblöcke, die aus Linux mailinglisten kopiert wurden. Da meine E-Mails in zwei PostgreSQL Datenbanken gespeichert werden habe ich hier höllenmäßigs Such- und Vergleichfunktionen mit Hilfe von tsearch2... Fast alle Textblöcke habe ich irgendwo auf den 106 Mailinglisten auf denen ich bin wiedergefunden. Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
Am Donnerstag 03 August 2006 21:05 schrieb Matthias Haegele: Echt nicht? Dann liegen die 60.000 Spam-Mails hier ja völlig umsonst rum... Wie alt sind denn die, und wie ist dein Verhältnis Spammails zu Hammails ca?. Die ältesten etwa 2 Jahre. Das Verhältnis ist wohl nicht ganz 1:1 (Vorteil für die Spammails) scheinbar also auch eher ungünstig. (Bei mir ca. 300 Spam zu ~6 ham) (Fast ausschliesslich Listenmails mit 1% priv. Mails) ... Mein Listenarchiv habe ich aufgegeben. Gruß Chris -- A: because it distrupts the normal process of thought Q: why is top posting frowned upon
[OT] Argument list too long beim kopieren vieler Dateien [OT]
Hallo Ihr! Ziel: alle Dateien im Unterverzeichnis ls -la /home/username/Maildir/.Inbox_OLD/cur/ nach /tmp/ham/ zu kopieren. (um sie mit sa-learn --ham später zu lernen ...) Das funktioniert: --- cp /home/mhaegele/Maildir/.Inbox_OLD/cur/* /tmp/ham/ -su: /bin/cp: Argument list too long Da dort 47342 Dateien liegen funktioniert das nicht : (ls -la /home/username/Maildir/.Inbox_OLD/cur/ | wc -l 47344) -su: /bin/cp: Argument list too long Lösung: ins Verzeichnis /home/.../cur/ wechseln und dort: find . -name * -exec cp {} /tmp/ham/.Inbox_OLD/ \; - Was so nicht funktioniert: So nun bräuchte ich das gleiche (Die Dateien sind im Zielverzeichnis ja nicht weniger geworden ...) für u. a. Befehl, irgendwie komme ich nicht auf die Syntax, jemand nen Tipp? sudo -u amavis -H sa-learn --ham --showdots /tmp/ham/.Inbox_OLD/* (ein chown -R amavis /tmp/ham/.Inbox_OLD/ habe ich gemacht ...) als user darf man das -exec nicht ausführen?. Falls ich mich etwas wirr ausgedrückt habe, beantworte ich gerne Rückfragen ... Danke für jeden Hinweis MH -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
On Thu, Aug 03, 2006 at 05:38:22PM +0200, Matthias Haegele wrote: Ziel: alle Dateien im Unterverzeichnis ls -la /home/username/Maildir/.Inbox_OLD/cur/ nach /tmp/ham/ zu kopieren. (um sie mit sa-learn --ham später zu lernen ...) Du weisst das man Bayes-Filter nicht mit alten Daten fuettern soll? Lieber fuer einige Wochen auf das automatische filtern verzichten und stattdessen mit aktuellen Dateien arbeiten. So nun bräuchte ich das gleiche (Die Dateien sind im Zielverzeichnis ja nicht weniger geworden ...) für u. a. Befehl, irgendwie komme ich nicht auf die Syntax, jemand nen Tipp? find | xargs und --target bei cp, mv etc. benutzen. Peter -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
Am Donnerstag 03 August 2006 17:48 schrieb Peter Wiersig: Du weisst das man Bayes-Filter nicht mit alten Daten fuettern soll? Echt nicht? Dann liegen die 60.000 Spam-Mails hier ja völlig umsonst rum... Gruß Chris -- A: because it distrupts the normal process of thought Q: why is top posting frowned upon
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
On Thu, Aug 03, 2006 at 05:53:04PM +0200, Christian Frommeyer wrote: Am Donnerstag 03 August 2006 17:48 schrieb Peter Wiersig: Du weisst das man Bayes-Filter nicht mit alten Daten fuettern soll? Echt nicht? Dann liegen die 60.000 Spam-Mails hier ja völlig umsonst rum... http://spamassassin.apache.org/full/3.0.x/dist/doc/sa-learn.html#effective_training Zum einen wandelt sich auch Spam relativ haeufig, zum anderen werden die Jahreszahlen dann zu hoch bewertet. Ich trainiere meine Filter lieber nur mit aktuellen Daten. Am effektivsten lernt z.B. POPFile nur wenn dieser Fehler macht. In den Filter von SA habe ich noch nicht allzutief hineingeschaut, wuerde aber auf Grund meines Kenntnisstands von Bayes-Filtern die auto-learn Funktion nicht aktivieren. Der Grossteil meines Spams wird an anderen Merkmalen als dem Body klassifiziert und ich erlebe in den letzten Wochen einem Zug der Spammer die versuchen speziell Bayes Filter zu umgehen. Schon aufgefallen, das viele Worte in Betreffzeilen einen Linux/OSS-Software Bezug erhalten? Peter -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
Am Donnerstag 03 August 2006 18:00 schrieb Peter Wiersig: http://spamassassin.apache.org/full/3.0.x/dist/doc/sa-learn.html#effe ctive_training Zum einen wandelt sich auch Spam relativ haeufig, zum anderen werden die Jahreszahlen dann zu hoch bewertet. Danke für den Link. Ja klingt logisch. Also weg mit dem Müll ;) Gruß Chris -- A: because it distrupts the normal process of thought Q: why is top posting frowned upon
Re: [OT] Argument list too long beim kopieren vieler Dateien [OT]
Peter Wiersig schrieb: On Thu, Aug 03, 2006 at 05:53:04PM +0200, Christian Frommeyer wrote: Am Donnerstag 03 August 2006 17:48 schrieb Peter Wiersig: Du weisst das man Bayes-Filter nicht mit alten Daten fuettern soll? Die Mails sind fast ausschliesslich Mails diesen Jahres (diverse Mailinglisten) ... Echt nicht? Dann liegen die 60.000 Spam-Mails hier ja völlig umsonst rum... Wie alt sind denn die, und wie ist dein Verhältnis Spammails zu Hammails ca?. (Bei mir ca. 300 Spam zu ~6 ham) (Fast ausschliesslich Listenmails mit 1% priv. Mails) ... Bei mir wird das meiste momentan mittels Postfix restrictions rausgefiltert, das scheint immer noch das effektivste zu sein (s.u. bei Interesse). http://spamassassin.apache.org/full/3.0.x/dist/doc/sa-learn.html#effective_training Zum einen wandelt sich auch Spam relativ haeufig, zum anderen werden die Jahreszahlen dann zu hoch bewertet. Ich trainiere meine Filter lieber nur mit aktuellen Daten. Am effektivsten lernt z.B. POPFile nur wenn dieser Fehler macht. In den Filter von SA habe ich noch nicht allzutief hineingeschaut, wuerde aber auf Grund meines Kenntnisstands von Bayes-Filtern die auto-learn Funktion nicht aktivieren. Wieso nicht? mit manueller Korrektur bei Falschentscheidungen? Ein Nachteil ist die AWL-Score (autowhiteliste) die bei mir bei Spams an die Mailinglisten immer wieder dazwischenfunkt. Der Bayes-Test liegt bei mir sehr oft goldrichtig (vor allem bei BAYES_99), false-positives hatte ich hierdurch bis jetzt noch nicht. Andererseits rutschen einige neuere Spammails durch bei denen nur BAYES_40 anschlägt. Der Grossteil meines Spams wird an anderen Merkmalen als dem Body klassifiziert und ich erlebe in den letzten Wochen einem Zug der Spammer die versuchen speziell Bayes Filter zu umgehen. Schon aufgefallen, das viele Worte in Betreffzeilen einen Linux/OSS-Software Bezug erhalten? Solchen Spam habe ich bis jetzt nicht bemerkt ... Peter Grüsse MH btw: ich setzte SA aus unstable ein (auf dem Server), die Abhängigkeiten sind hier ja nicht zu wild ... benutzt ihr eigentlich sa-update? Hat jemand eine Rulesammlung regex f. Postfix um backscatter der verbreiteten Virusrückmeldungen rauszufiltern (auch auf japanisch ;-) ). pflogsumm /var/log/mail.log message bounce detail (by relay) 127.0.0.1[127.0.0.1] (total: 1) 1 5.7.1 Message content rejected, UBE, id=00942-07 (in reply ... message reject detail - RCPT Helo command rejected: Dont use my IP Address go away (total: 2) 1 81.185.155.186 1 210.105.42.233 Helo command rejected: need fully-qualified hostname (total: 4) 1 62.65.183.35 1 fastres.net 1 124.106.233.21 1 219.135.156.98 Recipient address rejected: User unknown in local recipient table (total: 1) 1 [EMAIL PROTECTED] Sender address rejected: Domain not found (total: 1) 1 [EMAIL PROTECTED] Sender address rejected: undeliverable address (total: 2) 1 [EMAIL PROTECTED] 1 [EMAIL PROTECTED] message reject warning detail: none message hold detail: none message discard detail: none smtp delivery failures: none Warnings smtpd (total: 5) 2 smtpd_peer_init: 81.215.200.161: address not listed for hostnam... 1 smtpd_peer_init: 124.106.233.21: address not listed for hostnam... 1 smtpd_peer_init: 68.93.150.140: address not listed for hostname... 1 Unable to look up MX host for mail2senegall.com: Host not found -- Haeufig gestellte Fragen und Antworten (FAQ): http://www.de.debian.org/debian-user-german-FAQ/ Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED] mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)
Re: Argument list too long
On Tue, Dec 23, 2003 at 08:34:17AM +0900, Vincent Lefevre wrote: | On 2003-12-19 10:53:35 -0500, Derrick 'dman' Hudson wrote: | On Fri, Dec 19, 2003 at 11:47:32AM +0200, Dobai-Pataky Balint wrote: | | i have a webcam logging all motion into jpgs, my php code does lots with | | it, except after i convert selected jpgs copied into the workin' folder, | | and after conversion i'd like to rm them from php or by hand it'll give: | | rm *.jpg | | su: /bin/rm: Argument list too long | | The problem is that the shell has a hard limit on the size (in bytes) | of commands. | | No, it's a kernel limit, not a shell limit. Ok. Close, though :-). | Another option, not yet given, is : | | find . -name \*.jpg | xargs rm | | This is potentially dangerous (filenames may contain a \n character). True. Even just a space is a problem since xargs will think it separates two paths. | If you want to use find and xargs, do it correctly (see other posts). I agree, if you aren't positive your data is well-formed. When working on files I -know- don't contain spaces or other odd characters I often omit the -print0/-0. If I'm not positive, then i include them. -D -- 640K ought to be enough for anybody -Bill Gates, 1981 www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] pgp0.pgp Description: PGP signature
Re: Argument list too long
On 2003-12-19 10:53:35 -0500, Derrick 'dman' Hudson wrote: On Fri, Dec 19, 2003 at 11:47:32AM +0200, Dobai-Pataky Balint wrote: | i have a webcam logging all motion into jpgs, my php code does lots with | it, except after i convert selected jpgs copied into the workin' folder, | and after conversion i'd like to rm them from php or by hand it'll give: | rm *.jpg | su: /bin/rm: Argument list too long The problem is that the shell has a hard limit on the size (in bytes) of commands. No, it's a kernel limit, not a shell limit. For instance, in zsh, you wouldn't have any error with the rm builtin from the zsh/files module. This limit is quite large (many times larger than cmd.exe on windows!) and you won't often run into it, except for example when using '*' in a large directory. I often reach it with recursive globbing. Another option, not yet given, is : find . -name \*.jpg | xargs rm This is potentially dangerous (filenames may contain a \n character). If you want to use find and xargs, do it correctly (see other posts). -- Vincent Lefèvre [EMAIL PROTECTED] - Web: http://www.vinc17.org/ - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Argument list too long
on Fri, Dec 19, 2003 at 10:53:35AM -0500, Derrick 'dman' Hudson ([EMAIL PROTECTED]) wrote: Another option, not yet given, is : find . -name \*.jpg | xargs rm Read the manpages for find and xargs. find lists all files/directories matching the given criteria on stdout. xargs reads stdin and executes the specified command on the arguments found on stdin. I'd recommend the 'print0/-0' arguments to find xargs, respectively. Peace. -- Karsten M. Self [EMAIL PROTECTED]http://kmself.home.netcom.com/ What Part of Gestalt don't you understand? We need a miracle, it's very important. - Princess Bride pgp0.pgp Description: PGP signature
Argument list too long
hi, i have a webcam logging all motion into jpgs, my php code does lots with it, except after i convert selected jpgs copied into the workin' folder, and after conversion i'd like to rm them from php or by hand it'll give: rm *.jpg su: /bin/rm: Argument list too long so i have to enter mc, enter the directory and F8 them out. how could i do a right rm? (without generating a shell pattern to rm them in separated groups) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Argument list too long
On Fri, Dec 19, 2003 at 11:47:32AM +0200, Dobai-Pataky Balint wrote: hi, i have a webcam logging all motion into jpgs, my php code does lots with it, except after i convert selected jpgs copied into the workin' folder, and after conversion i'd like to rm them from php or by hand it'll give: rm *.jpg su: /bin/rm: Argument list too long so i have to enter mc, enter the directory and F8 them out. how could i do a right rm? (without generating a shell pattern to rm them in separated groups) Hi Dobai, this is my favorite little bash snippet. ls *.jpg | while read filename; do rm $filename; done or find *.jpg | while read filename; do rm $filename; done -Kev signature.asc Description: Digital signature
Re: Argument list too long
on Fri, 19 Dec 2003 11:47:32AM +0200, Dobai-Pataky Balint insinuated: i have a webcam logging all motion into jpgs, my php code does lots with it, except after i convert selected jpgs copied into the workin' folder, and after conversion i'd like to rm them from php or by hand it'll give: rm *.jpg su: /bin/rm: Argument list too long i get this all the time -- often when i'm doing stuff with ~/Mail/inbox/cur/* :-P so i have to enter mc, enter the directory and F8 them out. how could i do a right rm? (without generating a shell pattern to rm them in separated groups) for i in *.jpg; do rm $i; done /nori -- .~. nori @ sccs.swarthmore.edu /V\ http://www.sccs.swarthmore.edu/~nori/jnl/ // \\ @ maenad.net /( )\ www.maenad.net ^`~'^ ** * http://www.aidsmarathon.com/participant.asp?runner=DCNO-3267year=2003 * ** * Please help me raise money for AIDS as I train for * * the Whitman-Walker AIDS Marathon! * ** pgp0.pgp Description: PGP signature
Re: Argument list too long
On Fri, Dec 19, 2003 at 11:47:32AM +0200, Dobai-Pataky Balint wrote: | | i have a webcam logging all motion into jpgs, my php code does lots with | it, except after i convert selected jpgs copied into the workin' folder, | and after conversion i'd like to rm them from php or by hand it'll give: | rm *.jpg | su: /bin/rm: Argument list too long The problem is that the shell has a hard limit on the size (in bytes) of commands. This limit is quite large (many times larger than cmd.exe on windows!) and you won't often run into it, except for example when using '*' in a large directory. | so i have to enter mc, enter the directory and F8 them out. | | how could i do a right rm? | (without generating a shell pattern to rm them in separated groups) Another option, not yet given, is : find . -name \*.jpg | xargs rm Read the manpages for find and xargs. find lists all files/directories matching the given criteria on stdout. xargs reads stdin and executes the specified command on the arguments found on stdin. -D -- \begin{humor} Disclaimer: If I receive a message from you, you are agreeing that: 1. I am by definition, the intended recipient 2. All information in the email is mine to do with as I see fit and make such financial profit, political mileage, or good joke as it lends itself to. In particular, I may quote it on USENET or the WWW. 3. I may take the contents as representing the views of your company. 4. This overrides any disclaimer or statement of confidentiality that may be included on your message \end{humor} www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED] pgp0.pgp Description: PGP signature
Re: Argument list too long
Dobai-Pataky Balint [EMAIL PROTECTED] writes: i have a webcam logging all motion into jpgs, my php code does lots with it, except after i convert selected jpgs copied into the workin' folder, and after conversion i'd like to rm them from php or by hand it'll give: rm *.jpg su: /bin/rm: Argument list too long so i have to enter mc, enter the directory and F8 them out. how could i do a right rm? (without generating a shell pattern to rm them in separated groups) You could use find/xargs; xargs' purpose in life is to break up command lines like this. Maybe find . -name . -o -type d -prune -o -type f -name '*.jpg' -print0 | xargs -0 rm (untested) to find JPEG files in the current directory, but not subdirectories, and remove them. Alternatively, find . -type f -name '*.jpg' -print0 | xargs -0 rm will find JPEG files in the current directory and all subdirectories and remove them. With fewer files, I'd advocate trying something like find . -type d -prune -o -type f -name '*.jpg' -print first to non-destructively check that it's getting the right list of files, then tack on the 'xargs rm' afterwards; sanity checking the find command's output can't hurt here. -- David Maze [EMAIL PROTECTED] http://people.debian.org/~dmaze/ Theoretical politics is interesting. Politicking should be illegal. -- Abra Mitchell -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]