Scripts posted recently tagged to linux in Kelpi

1- 6 of 6.

launch a unix command from Python

to python unix linux command by nando.quintana

LOG_FILE_NAME = "access.log"
OLD_LOG_FILE_NAME = "old.log
from os import spawnlp, P_WAIT
spawnlp(P_WAIT, 'cp', 'cp', LOG_FILE_NAME, OLD_LOG_FILE_NAME)

Hello World for the nasm Assembler (Linux)

to assembler nasm asm linux hello-world by nando.quintana

;;  http://www.roesler-ac.de/wolfram/hello.htm#Assembler-Linux
	;; Hello World for the nasm Assembler (Linux)
	
	SECTION .data
	msg	db	"Hello, world!",0xa ; 

Mostrar tabla ASCII en ensamblador para Linux/x86

to ASCII for asm assembler ensamblador x86 i386 Linux by txipi

section         .bss
char    resb    1
section         .text
global _start
_start:

Hola mundo en ensamblador para Linux/x86

to hello world asm assembler ensamblador x86 i386 Linux by txipi

section        .data
msg     db      'Hello, world!', 0Ah    ;message
len     equ     $ - msg                 ;length
section        .text
global _start

Bucle simple en ensamblador para Linux/x86

to for asm assembler ensamblador x86 i386 Linux by txipi

section         .data
i       dd      0Ah                     ;10 veces
msg     db      'Repitiendo...', 0Ah    ;mensaje
len     equ     $ - msg                 ;longitud
section         .text

Insertar cabecera xml a todos los ficheros

to sed bash linux by nando.quintana

1i\<!DOCTYPE texto SYSTEM "/home/nando/tesis/corpora/BOPV/pragmatics.dtd">\n<texto>
$a\\n</texto>
hits counter